Function at 0x5002c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
movzx eax, byte [edi + 0x1c]
mov ecx, dword [edi]
mov ecx, dword [ecx]
not eax
and eax, 1
mov dword [esp + 8], ecx
add ecx, eax
add ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
inc dword [ebx + 0x2c]
cmp dword [ebp + 0x1c], 0
mov edx, dword [edi + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x2c]
push esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
je 0x500315
mov ecx, dword [ebp + 0x10]
sub ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0xc], ecx
jmp 0x500325
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
add ecx, edx
mov dword [esp + 0xc], eax
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x500332
inc eax
jmp 0x500335
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.004cd7c0
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov ecx, eax
neg ecx
sbb cl, cl
and cl, 4
or cl, 1
movzx edx, cl
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [edi]
push ebx
call fcn.004e5570
add esp, 0x10
cmp dword [esp + 0x14], 0
je 0x50038a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 8]
push 0
add ecx, edx
push ecx
push eax
push 0x72
push esi
call fcn.004cd400
add esp, 0x14
cmp dword [ebp + 0x1c], 0
jne 0x5003ca
mov eax, dword [ebp + 0x18]
test eax, eax
jle 0x5003ca
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
add ecx, edx
add ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebx + 8]
push eax
push 0x3f
push ecx
call fcn.004cd400
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
add esp, 0x14
push edx
push eax
push ebx
call fcn.004e41a0
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
sub eax, ecx
add ecx, edx
mov edx, dword [esp + 0x2c]
push edx
push eax
push ecx
push 0x63
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
call fcn.004cd400
add esp, 0x14
cmp dword [esp + 0x18], 0
jle 0x50062f
mov eax, dword [ebx + 0x2c]
mov edx, dword [edi + 4]
add edx, eax
lea ecx, [eax + 1]
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0x10]
mov eax, edx
sub eax, dword [edi + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
push 0
mov dword [esp + 0x18], eax
push 0
test ecx, ecx
je 0x500437
mov eax, dword [esp + 0x14]
add eax, edx
push eax
push 0x16
jmp 0x50043d
mov eax, dword [edi + 8]
push eax
push 0x6e
push esi
call fcn.004cd400
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x20]
add esp, 0x14
push ecx
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
push eax
push 0x5e
push esi
call fcn.004cd400
mov eax, dword [edi + 0x14]
add esp, 0x14
test eax, eax
jge 0x500471
mov eax, dword [esi + 0x88]
dec eax
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x500484
mov eax, 0x5ef850
mov dword [esp + 0x1c], eax
jmp 0x500493
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea ecx, [eax + edx*4]
mov dword [esp + 0x1c], ecx
mov eax, ecx
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
jne 0x50075b
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x18]
add ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [eax + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x10]
push ecx
push 0
push edx
mov dword [esp + 0x20], eax
call fcn.0052e300
mov ecx, dword [esi]
add esp, 0xc
cmp byte [ecx + 0x45], 0
je 0x5004dd
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff7
call fcn.004cdcf0
add esp, 4
jmp 0x500514
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x58]
dec eax
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x500509
mov edx, dword [esp + 0x14]
push edx
push esi
mov eax, 0xfffffff7
call fcn.004cde50
add esp, 8
jmp 0x500514
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx + 8]
mov eax, dword [edi]
push edx
push eax
dec ecx
push ebx
call fcn.005012c0
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x88]
add esp, 0xc
mov dword [esp + 0x1c], eax
inc eax
push eax
push 0
push eax
push 0x12
push esi
call fcn.004cd400
add esp, 0x14
mov eax, esi
call fcn.004cd7c0
mov dword [edi + 0x10], eax
inc dword [ebx + 0x2c]
mov edx, dword [edi + 0x10]
mov eax, dword [ebx + 0x2c]
push 0
push edx
push eax
push 0xe
push esi
mov dword [edi + 0xc], eax
call fcn.004cd400
mov eax, dword [edi + 8]
add esp, 0x14
push 0
push 0
push eax
push 0x85
push esi
call fcn.004cd400
mov eax, dword [esp + 0x34]
add esp, 0x14
test eax, eax
je 0x5005a4
mov ecx, dword [edi + 0x18]
push 0
push ecx
push eax
push 0x16
push esi
call fcn.004cd400
add esp, 0x14
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x88]
test eax, eax
jge 0x5005b5
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x5005c4
mov eax, 0x5ef850
jmp 0x5005cd
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 8]
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push 0x3f
push edx
call fcn.004cd400
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
add esp, 0x14
push eax
push ecx
push ebx
call fcn.004e41a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x88]
add esp, 0xc
test eax, eax
jge 0x500614
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x500623
mov eax, 0x5ef850
jmp 0x50062c
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov al, byte [edi + 0x1c]
mov edx, dword [esp + 0x30]
mov ecx, dword [edi + 8]
and al, 1
movzx eax, al
push edx
mov edx, dword [esp + 0x30]
neg eax
push edx
sbb eax, eax
push ecx
add eax, 0x7e
push eax
push esi
call fcn.004cd400
mov ecx, dword [esi]
add esp, 0x14
cmp byte [ecx + 0x45], 0
jne 0x500672
mov ecx, dword [esp + 0x34]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x50075b
push 0
push 0
push eax
push 0x2f
push esi
mov dword [esp + 0x48], 0
call fcn.004cd400
mov edx, dword [edi + 8]
add esp, 0x14
push 0
push 0
push edx
push 0x21
push esi
mov dword [esp + 0x44], eax
call fcn.004cd400
add esp, 0x14
cmp byte [edi + 0x1d], 0
je 0x5006d0
inc dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 8]
push ebx
push eax
push ecx
push 0x60
push esi
call fcn.004cd400
add esp, 0x14
jmp 0x5006d4
mov ebx, dword [esp + 0x34]
mov edx, dword [edi + 8]
push 0
push 0
push edx
push 0x76
push esi
call fcn.004cd400
add esp, 0x14
cmp byte [edi + 0x1d], 0
je 0x500728
mov eax, dword [esi + 0x88]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
add eax, 2
push eax
add ecx, edx
push ecx
push 0x4e
push esi
call fcn.004cd400
mov eax, dword [esi + 0x88]
add esp, 0x14
test eax, eax
jle 0x500728
mov ecx, dword [esi + 0x58]
lea eax, [eax + eax*4]
mov edx, 0x80
mov word [ecx + eax*4 - 0x12], dx
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x88]
test eax, eax
jge 0x500739
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x50074f
mov eax, 0x5ef850
mov dword [eax + 8], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret