Function at 0x515750
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebx, ecx
push edi
xor edi, edi
mov dword [esp + 0x24], edi
movzx eax, word [esi + 0x20]
lea ebp, [esi + 4]
mov ecx, eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x51582d
push eax
mov ecx, ebx
call fcn.00514700
mov ecx, 0x800
test al, al
jne 0x515796
mov eax, ecx
or word [ebp], ax
test word [ebp], cx
je 0x5157f8
mov eax, dword [esp + 0x20]
mov edi, 1
mov ecx, dword [ebx + 0x64b7b0]
movzx eax, ax
cdq
sub ecx, eax
mov eax, dword [ebx + 0x64b7b4]
mov dword [esp + 0x24], ecx
sbb eax, edx
mov dword [ebx + 0x64b7b0], ecx
mov dword [ebx + 0x64b7b4], eax
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x20], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5157d3
sub ecx, edx
movzx eax, cx
mov ecx, eax
cdq
add eax, dword [esp + 0x24]
mov dword [ebx + 0x64b7b0], eax
adc edx, dword [esp + 0x20]
mov dword [ebx + 0x64b7b4], edx
jmp 0x515804
push esi
mov ecx, ebx
call fcn.005147d0
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x48]
movzx eax, cx
mov dword [esp + 0x24], edi
mov ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
test edi, edi
je 0x515841
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edi
jmp 0x515841
mov eax, dword [esi + 0x48]
mov ecx, 0xf7ff
and word [ebp], cx
and word [esi + 0x2e], cx
mov dword [esp + 0x20], eax
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ecx
ja 0x515885
jb 0x515860
cmp dword [esi + 0x10], 0x7fffffff
ja 0x515885
cmp dword [esi + 0x1c], 0
ja 0x515885
jb 0x515871
cmp dword [esi + 0x18], 0x7fffffff
ja 0x515885
test ecx, ecx
ja 0x515885
jb 0x51587c
cmp eax, 0xffffffff
ja 0x515885
cmp dword [esi + 0x28], 0xffff
jbe 0x515895
push esi
mov ecx, ebx
call fcn.00514d90
test eax, eax
jne 0x515be2
push 0x400
mov dword [esp + 0x20], 0x400
call fcn.00525bb0
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne 0x5158bf
push 4
mov ecx, ebx
call fcn.00512610
jmp 0x5158c2
lea ebp, [esi + 4]
mov dword [edi], 0x2014b50
movzx eax, word [esi]
mov byte [edi + 4], al
shr eax, 8
mov byte [edi + 5], al
movzx eax, word [esi + 2]
mov byte [edi + 6], al
shr eax, 8
mov byte [edi + 7], al
movzx eax, word [ebp]
mov byte [edi + 8], al
shr eax, 8
mov byte [edi + 9], al
movzx eax, word [esi + 6]
mov byte [edi + 0xa], al
shr eax, 8
mov byte [edi + 0xb], al
mov ecx, dword [esi + 8]
movzx eax, cx
mov byte [edi + 0xc], al
shr ecx, 0x10
mov byte [edi + 0xe], cl
shr ecx, 8
mov byte [edi + 0xf], cl
shr eax, 8
mov byte [edi + 0xd], al
mov ecx, dword [esi + 0xc]
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x10], al
mov byte [edi + 0x12], cl
shr ecx, 8
shr eax, 8
mov byte [edi + 0x11], al
mov byte [edi + 0x13], cl
cmp dword [esi + 0x14], 0
mov ecx, dword [esi + 0x10]
ja 0x51595c
cmp ecx, 0x7fffffff
ja 0x51595c
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x14], al
shr eax, 8
mov byte [edi + 0x16], cl
shr ecx, 8
mov byte [edi + 0x15], al
mov byte [edi + 0x17], cl
jmp 0x515963
mov dword [edi + 0x14], 0xffffffff
cmp dword [esi + 0x1c], 0
mov ecx, dword [esi + 0x18]
ja 0x515990
jb 0x515976
cmp ecx, 0x7fffffff
ja 0x515990
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x18], al
shr eax, 8
mov byte [edi + 0x1a], cl
shr ecx, 8
mov byte [edi + 0x19], al
mov byte [edi + 0x1b], cl
jmp 0x515997
mov dword [edi + 0x18], 0xffffffff
mov eax, dword [esp + 0x10]
mov byte [edi + 0x1c], al
shr eax, 8
mov byte [edi + 0x1d], al
movzx eax, word [esi + 0x24]
mov byte [edi + 0x1e], al
shr eax, 8
mov byte [edi + 0x1f], al
movzx eax, word [esi + 0x26]
mov byte [edi + 0x20], al
shr eax, 8
mov byte [edi + 0x21], al
mov eax, dword [esi + 0x28]
movzx ecx, ax
cmp eax, 0xffff
jbe 0x5159d3
mov word [edi + 0x22], 0xffff
jmp 0x5159de
mov eax, ecx
mov byte [edi + 0x22], al
shr eax, 8
mov byte [edi + 0x23], al
movzx eax, word [esi + 0x2c]
mov byte [edi + 0x24], al
shr eax, 8
mov byte [edi + 0x25], al
mov ecx, dword [esi + 0x38]
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x26], al
shr eax, 8
mov byte [edi + 0x28], cl
shr ecx, 8
cmp dword [esp + 0x14], 0
mov byte [edi + 0x27], al
mov byte [edi + 0x29], cl
ja 0x515a30
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
ja 0x515a30
movzx eax, cx
shr ecx, 0x10
mov byte [edi + 0x2a], al
shr eax, 8
mov byte [edi + 0x2c], cl
shr ecx, 8
mov byte [edi + 0x2b], al
mov byte [edi + 0x2d], cl
jmp 0x515a37
mov dword [edi + 0x2a], 0xffffffff
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x2e
jne 0x515ab9
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004df5c0
test al, al
je 0x515ab9
mov ebp, dword [esp + 0x20]
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515a63
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00525bb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x515a87
push 4
mov ecx, ebx
call fcn.00512610
push edi
push ebp
call dword [sym.imp.USER32.dll_CharToOemA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, cx
mov ecx, ebx
push eax
push edi
call fcn.00515270
push edi
call fcn.00525b95
add esp, 4
jmp 0x515adc
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
mov ebp, dword [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, cx
mov ecx, ebx
push eax
push ebp
call fcn.00515270
movzx eax, word [esi + 0x24]
test ax, ax
je 0x515aff
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push dword [esi + 0x40]
mov ecx, ebx
call fcn.00515270
cmp word [esi + 0x26], 0
je 0x515b95
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004df5c0
mov ecx, dword [esi + 0x44]
test al, al
je 0x515b79
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515b24
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00525bb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x515b48
push 4
mov ecx, ebx
call fcn.00512610
push edi
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, word [esi + 0x26]
push eax
push edi
call fcn.00515270
push edi
call fcn.00525b95
add esp, 4
jmp 0x515b95
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
movzx eax, word [esi + 0x26]
push eax
push ecx
mov ecx, ebx
call fcn.00515270
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [esp + 0x18]
push 2
push esi
push 1
push edi
call fcn.00510540
push edi
cmp eax, esi
je 0x515bd8
call fcn.00525b95
add esp, 4
mov ecx, 0x5b68fc
push dword [ebx + 0x64b794]
push 0
call fcn.0047bbe0
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x1c
ret 4
call fcn.00525b95
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4