Function at 0x41ed20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
cmp dword [ecx + 0x198], 0
push esi
push edi
lea edi, [ecx + 0x188]
mov dword [ebp - 0x58], 0
sete al
test al, al
jne 0x41ed8e
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], al
call fcn.00403de0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
push 0x400
lea eax, [ebp - 0x458]
push 0
push eax
call fcn.00434830
add esp, 0xc
lea eax, [ebp - 0x458]
push 0x3fe
push eax
call sub.WSOCK32.dll_gethostname
mov ebx, eax
lea eax, [ebp - 0x24]
test ebx, ebx
je 0x41ee64
push 0xffffffffffffffff
push eax
call fcn.004084a0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x4a9a88
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x41edfb
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_get_local_host_name_
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x41ee26
mov esi, dword [esi]
push esi
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x40]
add esp, 0x10
cmp eax, 0x10
jb 0x41ee50
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00404120
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
jmp 0x41eed3
push eax
mov ecx, 0x4a9a88
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x41ee88
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.INFO:_Host_name__
push 0x48649c
push eax
call fcn.0040e7e0
lea ecx, [ebp - 0x458]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x34
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x41eeef
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00404120
push 0
push 0x486490
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.00403ef0
test ebx, ebx
mov dword [ebp - 4], 3
pop ebx
jne 0x41ef5c
cmp byte [ebp - 0x458], 0
jne 0x41ef29
xor ecx, ecx
jmp 0x41ef3b
lea ecx, [ebp - 0x458]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ef32
sub ecx, edx
push ecx
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403ef0
push 1
push 0
push 0x486bac
lea ecx, [ebp - 0x3c]
call fcn.00407e90
lea eax, [ebp - 0x3c]
cmp edi, eax
je 0x41ef6f
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00403de0
lea eax, [ebp - 0x24]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x41ef93
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.INFO:_Local_fully_qualified_host_name__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
cmp dword [edi + 0x14], 0x10
jb 0x41efc0
mov ecx, dword [edi]
jmp 0x41efc2
mov ecx, edi
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x10]
add esp, 0x1c
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x41f000
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00404120
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00403de0
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x41f035
inc ecx
push ecx
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
call fcn.00404120
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4