Function at 0x40b810
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
mov eax, 0x58f524
call fcn.0051a22c
mov dword [ebp - 0x54], 2
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.0051a3e0
inc dword [ebp - 0x54]
mov word [ebp - 0x60], 8
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.0051a3e0
inc dword [ebp - 0x54]
mov dword [ebp - 0x74], 0x100
push dword [ebp - 0x74]
call sub.cc3260mt.dll___bnwa_qui
pop ecx
mov dword [ebp - 0x78], eax
mov word [ebp - 0x60], 0x14
mov edx, 0x58a82b
lea eax, [ebp - 4]
call fcn.0051a3a8
inc dword [ebp - 0x54]
mov word [ebp - 0x60], 8
lea edx, [ebp - 0x74]
push edx
push dword [ebp - 0x78]
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x40b977
mov word [ebp - 0x60], 0x20
lea eax, [ebp - 0xc]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
mov edx, 0x58a82c
lea eax, [ebp - 8]
call fcn.0051a3a8
inc dword [ebp - 0x54]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
pop ecx
call fcn.0051a624
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x78]
call fcn.0051a3a8
inc dword [ebp - 0x54]
lea edx, [ebp - 0x10]
pop ecx
pop eax
call fcn.0051a624
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
mov edx, 0x58a83b
lea eax, [ebp - 0x18]
call fcn.0051a3a8
inc dword [ebp - 0x54]
lea edx, [ebp - 0x18]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.0051a5fc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051a5cc
push dword [ebp - 0x78]
call sub.cc3260mt.dll___bdele_qpv
pop ecx
mov word [ebp - 0x60], 0x2c
lea eax, [ebp - 0x24]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
mov edx, 0x58a83e
lea eax, [ebp - 0x20]
call fcn.0051a3a8
inc dword [ebp - 0x54]
lea edx, [ebp - 0x20]
lea eax, [ebp - 4]
pop ecx
call fcn.0051a624
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
call fcn.00402270
mov ecx, eax
inc dword [ebp - 0x54]
lea edx, [ebp + 0x10]
pop eax
call fcn.0051a624
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x30]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
mov edx, 0x58a847
lea eax, [ebp - 0x2c]
call fcn.0051a3a8
inc dword [ebp - 0x54]
lea edx, [ebp - 0x2c]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x30]
lea eax, [ebp - 4]
call fcn.0051a5fc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0051a5cc
mov ecx, dword [ebp + 8]
add ecx, 0x140
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a4b4
add esp, 8
mov word [ebp - 0x60], 8
jmp 0x40bbea
mov word [ebp - 0x60], 0x44
lea edx, [ebp - 0x7c]
push edx
call fcn.0040a43c
pop ecx
mov edx, eax
lea eax, [ebp - 0x34]
call fcn.0051a3e0
inc dword [ebp - 0x54]
mov word [ebp - 0x60], 0x38
lea ecx, [ebp - 0x7c]
push ecx
call fcn.0040a43c
pop ecx
lea edx, [ebp + 0xc]
call fcn.0051a6c8
test al, al
je 0x40bbca
mov word [ebp - 0x60], 0x50
lea eax, [ebp - 0x40]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
lea ecx, [ebp - 0x7c]
push ecx
call fcn.0040a43c
pop ecx
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
mov eax, dword [edx + 0x70]
pop edx
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
lea ecx, [ebp - 0x40]
push ecx
lea eax, [ebp - 0x3c]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
mov edx, 0x58a84a
lea eax, [ebp - 0x38]
call fcn.0051a3a8
inc dword [ebp - 0x54]
lea edx, [ebp - 0x38]
lea eax, [ebp - 4]
pop ecx
call fcn.0051a624
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x44]
call fcn.00402270
mov ecx, eax
inc dword [ebp - 0x54]
pop eax
pop edx
call fcn.0051a624
lea ecx, [ebp - 0x44]
push ecx
lea eax, [ebp - 0x4c]
call fcn.00402270
push eax
inc dword [ebp - 0x54]
mov edx, 0x58a854
lea eax, [ebp - 0x48]
call fcn.0051a3a8
inc dword [ebp - 0x54]
lea edx, [ebp - 0x48]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x4c]
lea eax, [ebp - 4]
call fcn.0051a5fc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0051a5cc
lea ecx, [ebp - 0x7c]
push ecx
call fcn.0040a43c
pop ecx
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00416190
dec dword [ebp - 0x54]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0x60], 8
lea ecx, [ebp - 0x7c]
push ecx
call fcn.0040a4cc
pop ecx
mov eax, dword [ebp + 8]
add eax, 0x140
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.0040a40c
add esp, 8
lea ecx, [ebp - 0x80]
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a424
add esp, 8
test al, al
jne 0x40ba6e
dec dword [ebp - 0x54]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0x54]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.0051a5cc
mov ecx, dword [ebp - 0x70]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret