Function at 0x479358
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x479360
xor eax, eax
push ebp
push 0x47963b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x298]
call fcn.0042bc90
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0046e10c
push 0x40
lea eax, [ebp - 0x58]
push eax
call sub.wsock32.dll_gethostname
inc eax
je 0x4793b2
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x58]
mov ecx, 0x40
call fcn.00404c68
lea ecx, [ebp - 0x60]
xor edx, edx
mov al, 1
call fcn.0043cdd4
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov eax, 0x479650
call fcn.0042f950
push dword [ebp - 0x5c]
call fcn.0042caec
and eax, 0x7f
lea edx, [ebp - 0x68]
call fcn.00408b8c
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
mov eax, 0x479660
call fcn.0042f950
push dword [ebp - 0x64]
mov eax, dword [0x48c340]
cmp byte [eax], 0
jne 0x47940b
call fcn.0042afdc
test al, al
jne 0x47940b
xor eax, eax
jmp 0x47940d
mov al, 1
and eax, 0xff
lea edx, [ebp - 0x70]
call fcn.00408b8c
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
mov eax, 0x479674
call fcn.0042f950
push dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x2c0]
mov eax, dword [0x48be94]
mov al, byte [eax + 8]
call fcn.0043c528
call fcn.0043c850
lea edx, [ebp - 0x78]
call fcn.00408b8c
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov eax, 0x479684
call fcn.0042f950
push dword [ebp - 0x74]
lea edx, [ebp - 0x80]
mov eax, dword [0x48c124]
movzx eax, byte [eax]
call fcn.00408b8c
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
mov eax, 0x479694
call fcn.0042f950
push dword [ebp - 0x7c]
lea eax, [ebp - 0x88]
call fcn.0042bcf0
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
mov eax, 0x4796a4
call fcn.0042f950
push dword [ebp - 0x84]
lea eax, [ebp - 0x90]
call fcn.0042c9c4
mov edx, dword [ebp - 0x90]
lea ecx, [ebp - 0x8c]
mov eax, 0x4796b0
call fcn.0042f950
push dword [ebp - 0x8c]
lea eax, [ebp - 0x98]
call fcn.00459848
mov edx, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov eax, 0x4796c0
call fcn.0042f950
push dword [ebp - 0x94]
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x14]
mov eax, 0x4796d0
call fcn.0042f950
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0xc]
mov eax, 0x4796e8
call fcn.0042f950
push dword [ebp - 0xa0]
lea edx, [ebp - 0xa8]
mov eax, dword [0x48c2b0]
movzx eax, byte [eax]
call fcn.00408b8c
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
mov eax, 0x4796f4
call fcn.0042f950
push dword [ebp - 0xa4]
lea eax, [ebp - 8]
mov edx, 0xb
call fcn.00404d78
mov eax, dword [ebp - 8]
call fcn.00404cb8
add eax, 9
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x47932c]
call fcn.00405df8
add esp, 4
mov eax, dword [ebp - 8]
call fcn.00404cb8
push eax
lea eax, [ebp - 8]
call fcn.00404f10
mov edx, dword [ebp - 0x10]
add edx, 9
pop ecx
call fcn.004028dc
mov eax, dword [ebp - 0x10]
call fcn.00405c44
push eax
mov eax, dword [ebp - 8]
call fcn.00404cb8
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov ax, 2
call fcn.0043cd88
mov eax, dword [ebp - 0x10]
call fcn.00405c3c
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00459d10
push 0
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x47932c]
call fcn.00405df8
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479642
lea eax, [ebp - 0xa8]
mov edx, 0x14
call fcn.00404a1c
lea eax, [ebp - 0x14]
call fcn.004049f8
lea eax, [ebp - 0x10]
mov edx, dword [0x47932c]
call fcn.00405e04
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a1c
ret