Function at 0x4c0d70
Capabilities:
Get hostname

Disassembly:
sub esp, 0x908
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x904], eax
push ebx
mov ebx, dword [esp + 0x910]
push ebp
push esi
push edi
push 0x400
lea eax, [esp + 0x515]
push 0
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], 0x57d3dd
mov byte [esp + 0x51c], 0
call fcn.004804c0
mov eax, 0x57d3dd
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c0dc2
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x510]
mov dword [esp + 0x14], ecx
lea esi, [eax + 1]
jmp 0x4c0de0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c0de0
sub eax, esi
cmp dword [esp + 0x920], 0
mov edi, eax
mov dword [esp + 0x18], 0
je 0x4c0e22
mov eax, dword [ebx + 0xa8]
mov esi, dword [ebx + 0xa4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
lea edx, [ebx + 0x1bc]
lea ebp, [ebx + 0x22c]
add eax, 0x85bc
jmp 0x4c0e45
mov eax, dword [ebx + 0xa0]
mov esi, dword [ebx + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
lea edx, [ebx + 0x1c8]
lea ebp, [ebx + 0x21c]
add eax, 0x85a4
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [eax + 0xc], 0
test esi, esi
jne 0x4c0e5d
mov esi, 0x57d3dd
cmp dword [esp + 0x10], 0
jne 0x4c0e6c
mov dword [esp + 0x10], 0x57d3dd
mov edx, dword [ebp]
sub edx, 2
je 0x4c0f99
sub edx, 1
je 0x4c0f69
push 0x57d3dd
mov ebx, dword [esp + 0x18]
lea ebp, [esp + 0x514]
push ebp
push 0
push 0
push 0
push 0
mov eax, edi
shr eax, 8
and eax, 0xff
push eax
mov edx, edi
and edx, 0xff
push edx
push eax
push edx
push 0
push 0
push eax
push edx
shr ecx, 8
and ecx, 0xff
push ecx
mov esi, ebx
and esi, 0xff
push esi
push ecx
push esi
push 0
push 8
push 0x82
push 6
push 0
push 0
push 0
push 0
push str.NTLMSSP_c
lea ecx, [esp + 0x17c]
push 0x400
push ecx
call fcn.004ad1d0
lea edx, [esp + 0x8c]
push edx
lea eax, [edi + ebx + 0x20]
push eax
lea ecx, [esp + 0x18c]
push ecx
push 0
call fcn.004d7670
add esp, 0x84
test eax, eax
jbe 0x4c1396
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
push edx
call fcn.0049efc0
add esp, 4
cmp dword [esp + 0x920], 0
mov eax, str.Proxy_
jne 0x4c0f42
mov eax, 0x57d3dd
mov ecx, dword [esp + 0x18]
push ecx
push eax
push str._sAuthorization:_NTLM__s_r_n
call fcn.004adc20
mov edx, dword [esp + 0x24]
push edx
mov dword [esi], eax
call dword [0x595e18]
add esp, 0x10
xor eax, eax
jmp 0x4c139b
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4c0f8b
push ecx
call dword [0x595e18]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [edx], 0
mov dword [eax + 0xc], 1
xor eax, eax
jmp 0x4c139b
push 0x5c
push esi
call fcn.0049dd40
add esp, 8
test eax, eax
jne 0x4c0fbb
push 0x2f
push esi
call fcn.0049dd40
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4c0fce
mov ecx, eax
sub ecx, esi
inc eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jmp 0x4c0fd4
mov dword [esp + 0x1c], esi
mov eax, esi
mov esi, eax
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0fe0
push 0x400
lea eax, [esp + 0x514]
sub esi, ecx
push eax
mov dword [esp + 0x3c], esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4c101e
mov ecx, dword [ebx]
push str.gethostname___failed__continuing_without_
push ecx
call fcn.004a7be0
add esp, 8
mov dword [esp + 0x28], 0
jmp 0x4c104e
lea edx, [esp + 0x510]
push 0x2e
push edx
call fcn.0049dd40
add esp, 8
test eax, eax
je 0x4c1037
mov byte [eax], 0
lea eax, [esp + 0x510]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c1041
sub eax, edx
mov dword [esp + 0x28], eax
test dword [ebp + 4], 0x80000
je 0x4c113b
mov eax, dword [ebx]
push eax
call fcn.004a8f60
lea ecx, [esp + 0x9c]
push 8
push ecx
call fcn.004c36c0
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
xor eax, eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xdc], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xec], edx
call fcn.004d9e70
push 0x10
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004dad50
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x120]
push edx
call fcn.004daff0
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x10c]
push eax
call fcn.004c0ce0
add esp, 0x28
cmp eax, 0x1b
je 0x4c1396
lea ecx, [esp + 0xb8]
push ecx
lea ebx, [esp + 0x104]
lea ecx, [esp + 0xec]
call fcn.004c0b80
add esp, 4
jmp 0x4c1191
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0xe8]
push edx
call fcn.004c0ce0
add esp, 4
cmp eax, 0x1b
je 0x4c1396
lea eax, [esp + 0xb8]
lea ebx, [ebp + 8]
push eax
lea ecx, [esp + 0xec]
call fcn.004c0b80
mov edx, dword [esp + 0x14]
lea edi, [esp + 0xd4]
call fcn.004c0c10
lea ecx, [esp + 0xa4]
push ecx
mov ecx, edi
call fcn.004c0b80
add esp, 8
and dword [ebp + 4], 0xfffffffe
mov ebx, dword [esp + 0x14]
and ebx, 0xff
mov dword [esp + 0x98], ebx
movzx ebx, byte [ebp + 7]
push ebx
movzx ebx, byte [ebp + 6]
push ebx
movzx ebx, byte [ebp + 5]
push ebx
movzx ebx, byte [ebp + 4]
push ebx
push 0
push 0
push 0
push 0
push 0
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
mov edi, dword [esp + 0x5c]
push 0
add edx, 0x70
lea eax, [edx + esi]
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x48]
shr ebx, 8
and ebx, 0xff
push ebx
movzx ebx, byte [esp + 0x4c]
push ebx
mov eax, edi
shr eax, 8
and eax, 0xff
push eax
mov ecx, esi
and edi, 0xff
push edi
push eax
push edi
push 0
push 0
and esi, 0xff
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x6c]
mov eax, edx
shr ecx, 8
shr esi, 8
shr eax, 8
and ecx, 0xff
and esi, 0xff
and eax, 0xff
push eax
mov eax, dword [esp + 0x8c]
movzx edx, dl
push edx
push ecx
push eax
push ecx
push eax
mov eax, dword [esp + 0x108]
push 0
push 0
push 0
push 0x70
push esi
push eax
push esi
push eax
push 0
push 0
push 0
push 0x58
push 0
push 0x18
push 0
push 0x18
push 0
push 0
push 0
push 0x40
push 0
push 0x18
push 0
push 0x18
push 0
push 0
push 0
push 0
push 0x556498
lea eax, [esp + 0x1f4]
push 0x400
push eax
call fcn.004ad1d0
mov esi, eax
add esp, 0xec
cmp esi, 0x3e8
jae 0x4c1367
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [esp + esi + 0x110], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + esi + 0x114], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + esi + 0x118], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + esi + 0x11c], ecx
mov dword [esp + esi + 0x120], edx
mov dword [esp + esi + 0x124], eax
add esi, 0x18
cmp esi, 0x3e8
jae 0x4c1367
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov dword [esp + esi + 0x110], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + esi + 0x114], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + esi + 0x118], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + esi + 0x11c], ecx
mov dword [esp + esi + 0x120], edx
mov dword [esp + esi + 0x124], eax
add esi, 0x18
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
lea ecx, [ebx + esi]
add ecx, edi
add ecx, eax
cmp ecx, 0x400
jb 0x4c13b4
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
push str.user__domain__host_name_too_big
push eax
call fcn.004a7c70
add esp, 8
mov eax, 0x1b
mov ecx, dword [esp + 0x914]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047ff9f
add esp, 0x908
ret
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + esi + 0x118]
push edx
call fcn.00481e40
add esi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ebx
push eax
lea ecx, [esp + esi + 0x124]
push ecx
call fcn.00481e40
push edi
lea edx, [esp + 0x52c]
add esi, ebx
push edx
lea eax, [esp + esi + 0x130]
push eax
call fcn.00481e40
lea ecx, [esp + 0x3c]
push ecx
add esi, edi
push esi
lea edx, [esp + 0x13c]
push edx
push 0
call fcn.004d7670
add esp, 0x34
test eax, eax
jbe 0x4c1396
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
call fcn.0049efc0
add esp, 4
cmp dword [esp + 0x920], 0
mov eax, str.Proxy_
jne 0x4c1437
mov eax, 0x57d3dd
mov ecx, dword [esp + 0x18]
push ecx
push eax
push str._sAuthorization:_NTLM__s_r_n
call fcn.004adc20
mov edx, dword [esp + 0x24]
push edx
mov dword [esi], eax
call dword [0x595e18]
mov eax, dword [esp + 0x34]
mov dword [ebp], 3
mov dword [eax + 0xc], 1
add esp, 0x10
xor eax, eax
jmp 0x4c139b