Function at 0x4bf210
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x400
xor esi, esi
lea eax, [ebp - 0x87f]
push esi
push eax
mov dword [ebp - 0x90c], ebx
mov dword [ebp - 0x900], 0x70d934
mov byte [ebp - 0x880], 0
call fcn.005902c0
lea eax, [ebp - 0x880]
add esp, 0xc
mov dword [ebp - 0x8e8], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf266
sub eax, edx
cmp byte [ebp + 0xc], 0
mov ecx, eax
mov dword [ebp - 0x8f0], ecx
mov dword [ebp - 0x8e4], esi
je 0x4bf2aa
mov eax, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x88]
mov dword [ebp - 0x8e0], eax
mov eax, dword [ebx]
lea edx, [ebx + 0x13c]
lea edi, [ebx + 0x19c]
add eax, 0x84e4
jmp 0x4bf2cf
mov eax, dword [ebx + 0x84]
mov esi, dword [ebx + 0x80]
mov dword [ebp - 0x8e0], eax
mov eax, dword [ebx]
lea edx, [ebx + 0x148]
lea edi, [ebx + 0x18c]
add eax, 0x84d4
mov dword [ebp - 0x8f8], eax
mov dword [ebp - 0x8ec], edx
mov byte [eax + 0xc], 0
test esi, esi
jne 0x4bf2e8
mov esi, 0x70d934
cmp dword [ebp - 0x8e0], 0
jne 0x4bf2fb
mov dword [ebp - 0x8e0], 0x70d934
mov edx, dword [edi]
sub edx, 2
je 0x4bf430
dec edx
je 0x4bf3f1
push 0x70d934
lea edx, [ebp - 0x880]
push edx
push 0
push 0
push 0
push 0
mov eax, ecx
shr eax, 8
and eax, 0xff
push eax
and ecx, 0xff
push ecx
push eax
push ecx
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 8
push 0x82
push 6
push 0
push 0
push 0
push 0
push str.NTLMSSP_c
lea eax, [ebp - 0x47c]
push 0x400
push eax
call fcn.004af3a0
mov edx, dword [ebp - 0x8f0]
lea ecx, [ebp - 0x8e4]
push ecx
add edx, 0x20
push edx
lea eax, [ebp - 0x47c]
push eax
push 0
call fcn.004c1950
add esp, 0x84
test eax, eax
je 0x4bf7cb
mov esi, dword [ebp - 0x8ec]
mov ecx, dword [esi]
push ecx
call fcn.004a2820
add esp, 4
cmp byte [ebp + 0xc], 0
mov eax, str.Proxy_
jne 0x4bf3ba
mov eax, 0x70d934
mov edx, dword [ebp - 0x8e4]
push edx
push eax
push str._sAuthorization:_NTLM__s_r_n
call fcn.004aff00
mov dword [esi], eax
mov eax, dword [ebp - 0x8e4]
push eax
call dword [0x75f004]
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x8ec]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4bf419
push ecx
call dword [0x75f004]
mov edx, dword [ebp - 0x8ec]
mov eax, dword [ebp - 0x8f8]
add esp, 4
mov dword [edx], 0
pop edi
pop esi
mov byte [eax + 0xc], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.00590c80
add esp, 8
test eax, eax
jne 0x4bf454
push 0x2f
push esi
call fcn.00590c80
add esp, 8
mov dword [ebp - 0x8f4], eax
test eax, eax
je 0x4bf46d
mov ecx, eax
sub ecx, esi
inc eax
mov dword [ebp - 0x900], esi
mov dword [ebp - 0x8e8], ecx
mov dword [ebp - 0x8f4], eax
jmp 0x4bf475
mov dword [ebp - 0x8f4], esi
mov eax, esi
mov esi, eax
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4bf480
push 0x400
lea eax, [ebp - 0x880]
sub esi, ecx
push eax
mov dword [ebp - 0x8f0], esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4bf4c1
mov ecx, dword [ebx]
push str.gethostname___failed__continuing_without_
push ecx
call fcn.004ab130
add esp, 8
mov dword [ebp - 0x8fc], 0
jmp 0x4bf4f1
lea edx, [ebp - 0x880]
push 0x2e
push edx
call fcn.00590c80
add esp, 8
test eax, eax
je 0x4bf4d9
mov byte [eax], 0
lea eax, [ebp - 0x880]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf4e2
sub eax, edx
mov dword [ebp - 0x8fc], eax
test dword [edi + 4], 0x80000
je 0x4bf59a
mov eax, dword [ebx]
push eax
call fcn.004ac480
lea ecx, [ebp - 0xc]
push 8
push ecx
call fcn.004c3630
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x8dc]
push ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], edx
call fcn.004d0220
push 0x10
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x8dc]
push eax
call fcn.004cfff0
lea ecx, [ebp - 0x8dc]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.004d00f0
mov ecx, dword [ebp - 0x8e0]
lea eax, [ebp - 0x6c]
push eax
call fcn.004bf160
add esp, 0x28
cmp eax, 0x1b
je 0x4bf7cb
lea ecx, [ebp - 0x3c]
push ecx
lea ebx, [ebp - 0x7c]
lea ecx, [ebp - 0x6c]
call fcn.004befc0
add esp, 4
jmp 0x4bf5e2
mov ecx, dword [ebp - 0x8e0]
lea edx, [ebp - 0x6c]
push edx
call fcn.004bf160
add esp, 4
cmp eax, 0x1b
je 0x4bf7cb
lea eax, [ebp - 0x3c]
lea ebx, [edi + 8]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004befc0
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x8e0]
call fcn.004bf050
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x54]
call fcn.004befc0
add esp, 0xc
and dword [edi + 4], 0xfffffffe
mov ebx, esi
and ebx, 0xff
mov dword [ebp - 0x904], ebx
mov ebx, dword [ebp - 0x8e8]
and ebx, 0xff
mov dword [ebp - 8], ebx
movzx ebx, byte [edi + 7]
push ebx
movzx ebx, byte [edi + 6]
push ebx
movzx ebx, byte [edi + 5]
push ebx
movzx ebx, byte [edi + 4]
push ebx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x8e8]
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x8fc]
push 0
push 0
add edx, 0x70
lea eax, [edx + esi]
mov dword [ebp - 0x8e0], eax
mov ebx, dword [ebp - 0x8e0]
shr ebx, 8
and ebx, 0xff
push ebx
movzx ebx, byte [ebp - 0x8e0]
push ebx
mov eax, ecx
shr eax, 8
and eax, 0xff
push eax
and ecx, 0xff
mov dword [ebp - 0x908], ecx
mov ebx, ecx
push ebx
push eax
push ebx
push 0
push 0
mov ecx, esi
mov esi, dword [ebp - 0x8e8]
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 [ebp - 0x904]
movzx edx, dl
push edx
push ecx
push eax
push ecx
push eax
mov eax, dword [ebp - 8]
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 0x695500
lea eax, [ebp - 0x47c]
push 0x400
push eax
call fcn.004af3a0
mov esi, eax
add esp, 0xec
cmp esi, 0x3e8
jae 0x4bf795
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + esi - 0x47c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp + esi - 0x478], edx
mov edx, dword [ebp - 0x14]
mov dword [ebp + esi - 0x474], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + esi - 0x470], ecx
mov dword [ebp + esi - 0x46c], edx
mov dword [ebp + esi - 0x468], eax
add esi, 0x18
cmp esi, 0x3e8
jae 0x4bf795
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp + esi - 0x47c], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp + esi - 0x478], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp + esi - 0x474], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + esi - 0x470], ecx
mov dword [ebp + esi - 0x46c], edx
mov dword [ebp + esi - 0x468], eax
add esi, 0x18
mov ecx, dword [ebp - 0x8f0]
mov ebx, dword [ebp - 0x8fc]
mov eax, dword [ebp - 0x8e8]
add ecx, esi
add ecx, ebx
add ecx, eax
cmp ecx, 0x400
jb 0x4bf7e1
mov edx, dword [ebp - 0x90c]
mov eax, dword [edx]
push str.user__domain__host_name_too_big
push eax
call fcn.004ab1b0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x900]
push eax
push ecx
lea edx, [ebp + esi - 0x47c]
push edx
call fcn.005905c0
mov eax, dword [ebp - 0x8f0]
add esi, dword [ebp - 0x8e8]
mov ecx, dword [ebp - 0x8f4]
push eax
push ecx
lea edx, [ebp + esi - 0x47c]
push edx
call fcn.005905c0
add esi, dword [ebp - 0x8f0]
push ebx
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp + esi - 0x47c]
push ecx
call fcn.005905c0
lea edx, [ebp - 0x8e4]
push edx
add esi, ebx
push esi
lea eax, [ebp - 0x47c]
push eax
push 0
call fcn.004c1950
add esp, 0x34
test eax, eax
je 0x4bf7cb
mov esi, dword [ebp - 0x8ec]
mov ecx, dword [esi]
push ecx
call fcn.004a2820
add esp, 4
cmp byte [ebp + 0xc], 0
mov eax, str.Proxy_
jne 0x4bf876
mov eax, 0x70d934
mov edx, dword [ebp - 0x8e4]
push edx
push eax
push str._sAuthorization:_NTLM__s_r_n
call fcn.004aff00
mov dword [esi], eax
mov eax, dword [ebp - 0x8e4]
push eax
call dword [0x75f004]
mov ecx, dword [ebp - 0x8f8]
add esp, 0x10
mov dword [edi], 3
mov byte [ecx + 0xc], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0058cf08
mov esp, ebp
pop ebp
ret