Function at 0x52f4d6
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x914
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x910], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0xc], eax
mov ebx, edx
mov eax, dword [eax + 4]
push edi
and eax, 1
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
push 0x400
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x515]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x14]
push 0
push eax
mov dword [esp + 0x40], ecx
mov byte [esp + 0x51c], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x28], 0x57f98c
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
push 0x5c
push ebx
call dword [sym.imp.MSVCR120.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x52f578
push 0x2f
push ebx
call dword [sym.imp.MSVCR120.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x52f578
mov eax, ebx
mov dword [esp + 0x2c], ebx
jmp 0x52f589
mov edi, eax
mov dword [esp + 0x28], ebx
sub edi, ebx
inc eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x52f59f
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x52f592
sub esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x510]
call fcn.0052e651
test eax, eax
je 0x52f5c3
push str.gethostname___failed__continuing_without__n
push dword [esp + 0x24]
call fcn.00510c4e
pop ecx
pop ecx
xor ebx, ebx
jmp 0x52f5d6
lea ebx, [esp + 0x510]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x52f5cd
sub ebx, ecx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x24], ebx
je 0x52f5f3
add edi, edi
add esi, esi
add ebx, ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x10]
test dword [esi + 4], 0x80000
je 0x52f6d9
mov ecx, dword [esp + 0x20]
call fcn.00529b9b
lea eax, [esp + 0x98]
push 8
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_464]
mov edx, dword [esp + 0xa0]
lea edi, [esp + 0xc8]
mov ecx, dword [esp + 0xa4]
xor eax, eax
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], ecx
stosd dword es:[edi], eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xac], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_341]
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x10
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_342]
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_340]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xd8]
push eax
call fcn.005303e5
add esp, 0xc
cmp eax, 0x1b
jne 0x52f6c2
push 0x1b
pop eax
jmp 0x52f964
lea eax, [esp + 0xf8]
lea edx, [esp + 0xe8]
lea ecx, [esp + 0xd0]
jmp 0x52f72b
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xd0]
push eax
mov edx, edi
call fcn.005303e5
pop ecx
cmp eax, 0x1b
je 0x52f6ba
lea eax, [esp + 0xf8]
push eax
lea edx, [esi + 8]
lea ecx, [esp + 0xd4]
call fcn.0053026b
pop ecx
lea eax, [esp + 0xa0]
mov edx, edi
push eax
call fcn.00530306
pop ecx
lea eax, [esp + 0xb8]
lea edx, [esi + 8]
lea ecx, [esp + 0xa0]
push eax
call fcn.0053026b
pop ecx
mov edi, dword [esp + 0x14]
mov esi, ebx
mov edx, dword [esp + 0xc]
mov ecx, ebx
mov eax, 0xff
shr esi, 8
and ecx, eax
and esi, eax
mov eax, edi
add edx, 0x70
shr eax, 8
add edx, edi
mov ebx, 0xff
and eax, ebx
and edi, ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, ebx
shr eax, 8
and ebx, 0xff
and eax, 0xff
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 7]
push eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 6]
push eax
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 5]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 4]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, edx
shr eax, 8
and eax, 0xff
push eax
movzx eax, dl
xor edx, edx
push eax
push esi
push ecx
push esi
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push edx
add ecx, 0x70
mov eax, ecx
shr eax, 8
and eax, 0xff
push eax
movzx eax, cl
push eax
mov eax, dword [esp + 0x7c]
push eax
push edi
push eax
mov eax, dword [esp + 0x104]
push edi
push edx
push edx
push edx
push 0x70
push eax
push ebx
push eax
push ebx
push edx
push edx
push edx
push 0x58
push edx
push 0x18
pop ebx
push ebx
push edx
push ebx
push edx
push edx
push edx
push 0x40
push edx
push ebx
push edx
push ebx
push edx
push edx
push edx
push edx
push 0x5a0aa0
lea eax, [esp + 0x1f4]
push 0x400
push eax
call fcn.0051b484
mov edx, eax
add esp, 0xec
mov eax, 0x3e8
cmp edx, eax
jae 0x52f864
lea edi, [esp + 0x110]
add edi, edx
lea esi, [esp + 0xb8]
push 6
add edx, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp edx, eax
jae 0x52f864
lea edi, [esp + 0x110]
push 6
add edi, edx
lea esi, [esp + 0xfc]
pop ecx
rep movsd dword es:[edi], dword [esi]
add edx, ebx
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
lea edi, [edx + ecx]
lea eax, [edi + ebx]
add eax, esi
cmp eax, 0x400
jb 0x52f894
push str.user__domain__host_name_too_big
push dword [esp + 0x24]
call fcn.00510cc2
pop ecx
pop ecx
jmp 0x52f6ba
cmp dword [esp + 0x18], 0
je 0x52f8b5
shr ecx, 1
push ecx
lea ecx, [esp + 0x114]
add ecx, edx
mov edx, dword [esp + 0x2c]
call fcn.0052f43a
add esp, 4
jmp 0x52f8cc
push ecx
push dword [esp + 0x2c]
lea eax, [esp + 0x118]
add eax, edx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x52f8ef
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x110]
mov eax, ebx
add ecx, edi
shr eax, 1
push eax
call fcn.0052f43a
add esp, 4
jmp 0x52f906
push ebx
push dword [esp + 0x30]
lea eax, [esp + 0x118]
add eax, edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
add edi, ebx
cmp dword [esp + 0x18], 0
je 0x52f92e
mov eax, esi
lea ecx, [esp + 0x110]
shr eax, 1
lea edx, [esp + 0x510]
push eax
add ecx, edi
call fcn.0052f43a
add esp, 4
jmp 0x52f949
push esi
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x118]
add eax, edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
push dword [esp + 0x34]
lea eax, [edi + esi]
push dword [esp + 0x34]
lea edx, [esp + 0x118]
push eax
call fcn.0052d431
add esp, 0xc
mov ecx, dword [esp + 0x91c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055daac
mov esp, ebp
pop ebp
ret