Function at 0x504270
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c0
mov eax, dword [0x562850]
xor eax, esp
mov dword [esp + 0x8bc], eax
mov eax, dword [esp + 0x8cc]
mov ecx, dword [esp + 0x8d4]
push ebx
mov ebx, dword [esp + 0x8c8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8d4]
push ebp
mov ebp, dword [esp + 0x8d0]
push esi
mov dword [esp + 0x10], eax
mov al, byte [eax + 4]
push edi
and al, 1
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x8e8]
push 0x400
mov byte [esp + 0x17], al
lea eax, [esp + 0x4cd]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xb4]
push 0
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], 0x18
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], 0
mov byte [esp + 0x4d4], 0
call fcn.004bc610
push 0x5c
xor edi, edi
mov dword [esp + 0x3c], 0x5599fc
xor esi, esi
mov dword [esp + 0x48], edi
push ebp
mov dword [esp + 0x3c], esi
call fcn.004ba840
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x504349
push 0x2f
push dword [esp + 0x1c]
call fcn.004ba840
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x504349
mov ebp, dword [esp + 0x18]
jmp 0x50435a
mov eax, dword [esp + 0x18]
mov esi, ebp
sub esi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
inc ebp
mov dword [esp + 0x34], ebp
test ebp, ebp
je 0x504374
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x504367
sub edi, ecx
mov dword [esp + 0x38], edi
lea eax, [esp + 0x4c8]
push 0x401
push eax
call fcn.00507470
add esp, 8
test eax, eax
je 0x50439f
push str.gethostname___failed__continuing_without__n
push ebx
call fcn.004ddf80
add esp, 8
xor ebx, ebx
jmp 0x5043b9
lea ebx, [esp + 0x4c8]
lea ecx, [ebx + 1]
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5043b0
sub ebx, ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
cmp dword [eax + 0x14], 0
je 0x504485
push dword [esp + 0x20]
call fcn.004d5290
push dword [esp + 0x24]
mov dword [esp + 0x78], eax
call fcn.004d5290
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x28]
push dword [esp + 0x30]
call fcn.00505eb0
add esp, 0x14
test eax, eax
jne 0x50485f
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x9c]
push eax
push esi
push dword [esp + 0x38]
push edi
push ebp
call fcn.00505f80
add esp, 0x18
test eax, eax
jne 0x50485f
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x80]
push eax
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00505e00
add esp, 0x10
test eax, eax
jne 0x50485f
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push esi
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00506060
add esp, 0x14
test eax, eax
jne 0x50485f
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
jmp 0x504593
mov ebp, dword [esp + 0x20]
mov esi, eax
test dword [esi + 4], 0x80000
je 0x50452d
push ebp
call fcn.004d5290
push ebp
mov esi, eax
call fcn.004d5290
mov edx, eax
mov dword [esp + 0x88], esi
mov eax, dword [esp + 0x1c]
xorps xmm0, xmm0
push 0x10
mov dword [esp + 0x90], edx
movdqu xmmword [esp + 0x94], xmm0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ecx
push 0x10
push eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edx
call fcn.004d5a80
add esp, 0x18
test eax, eax
jne 0x50485f
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x20]
push ebp
call fcn.00505eb0
add esp, 0xc
test eax, eax
jne 0x50485f
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xa0]
jmp 0x50458a
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x20]
push ebp
call fcn.00505eb0
add esp, 0xc
test eax, eax
jne 0x50485f
lea eax, [esp + 0xb0]
add esi, 8
push eax
lea eax, [esp + 0x9c]
push esi
push eax
call fcn.00505bb0
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x2c]
push ebp
call fcn.00505cc0
add esp, 0x18
test eax, eax
jne 0x50485f
lea eax, [esp + 0x80]
push eax
push esi
lea eax, [esp + 0x60]
push eax
call fcn.00505bb0
add esp, 0xc
cmp byte [esp + 0x13], 0
mov ebp, dword [esp + 0x28]
je 0x5045b0
add ebp, ebp
add edi, edi
add ebx, ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
mov esi, ebx
add eax, 0x58
shr esi, 8
mov dword [esp + 0x40], eax
mov ecx, ebx
add eax, ebp
and esi, 0xff
mov dword [esp + 0x1c], eax
and ecx, 0xff
mov ebx, edi
shr ebx, 8
lea edx, [edi + eax]
and ebx, 0xff
mov eax, ebp
and edi, 0xff
shr eax, 8
and ebp, 0xff
and eax, 0xff
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
shr eax, 8
and eax, 0xff
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
and eax, 0xff
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 7]
push eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 6]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 5]
push eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, edx
shr eax, 8
and eax, 0xff
push eax
movzx eax, dl
push eax
push esi
push ecx
push esi
push ecx
mov ecx, dword [esp + 0x6c]
mov eax, ecx
push 0
push 0
shr eax, 8
and eax, 0xff
push eax
movzx eax, cl
mov ecx, dword [esp + 0x9c]
push eax
push ebx
push edi
push ebx
push edi
push 0
mov eax, ecx
shr eax, 8
push 0
and eax, 0xff
push eax
movzx eax, cl
push eax
mov eax, dword [esp + 0xd4]
push eax
push ebp
push eax
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd0]
push ebp
push 0
push 0
push 0
push 0x58
push eax
push ecx
push eax
push ecx
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 str.NTLMSSP_c
lea eax, [esp + 0x1ac]
push 0x400
push eax
call fcn.004e0070
mov ebx, eax
add esp, 0xec
cmp ebx, 0x3e8
jae 0x504724
movdqu xmm0, xmmword [esp + 0x80]
movdqu xmmword [esp + ebx + 0xc8], xmm0
movq xmm0, qword [esp + 0x90]
movq qword [esp + ebx + 0xd8], xmm0
add ebx, 0x18
mov esi, dword [esp + 0x24]
mov eax, 0x400
sub eax, esi
cmp ebx, eax
jae 0x50474c
push esi
push dword [esp + 0x40]
lea eax, [esp + 0xd0]
add eax, ebx
push eax
call fcn.004bbf70
add esp, 0xc
add ebx, esi
push dword [esp + 0x30]
call dword [0x563b64]
mov ecx, dword [esp + 0x2c]
add esp, 4
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
lea ebp, [ebx + ecx]
lea eax, [esi + ebp]
add eax, edi
cmp eax, 0x400
jb 0x50478f
push str.user__domain__host_name_too_big
push dword [esp + 0x24]
call fcn.004ddeb0
add esp, 8
mov eax, 0x1b
jmp 0x50485f
lea eax, [esp + 0xc8]
add eax, ebx
cmp byte [esp + 0x13], 0
je 0x5047ae
shr ecx, 1
push ecx
push dword [esp + 0x30]
push eax
call fcn.00504aa0
jmp 0x5047b9
push ecx
push dword [esp + 0x30]
push eax
call fcn.004bbf70
mov bl, byte [esp + 0x1f]
add esp, 0xc
test bl, bl
je 0x5047de
mov eax, esi
shr eax, 1
push eax
push dword [esp + 0x38]
lea eax, [esp + 0xd0]
add eax, ebp
push eax
call fcn.00504aa0
jmp 0x5047f2
push esi
push dword [esp + 0x38]
lea eax, [esp + 0xd0]
add eax, ebp
push eax
call fcn.004bbf70
add esp, 0xc
add ebp, esi
test bl, bl
je 0x504819
mov eax, edi
shr eax, 1
push eax
lea eax, [esp + 0x4cc]
push eax
lea eax, [esp + 0xd0]
add eax, ebp
push eax
call fcn.00504aa0
jmp 0x504831
push edi
lea eax, [esp + 0x4cc]
push eax
lea eax, [esp + 0xd0]
add eax, ebp
push eax
call fcn.004bbf70
add esp, 0xc
lea eax, [edi + ebp]
push dword [esp + 0x48]
push dword [esp + 0x54]
push eax
lea eax, [esp + 0xd4]
push eax
push 0
call fcn.004eefa0
push dword [esp + 0x28]
mov esi, eax
call fcn.005049d0
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0x8cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ba5ad
add esp, 0x8c0
ret