Function at 0x513100
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x513463
sub esp, 0x40
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x513127
mov eax, dword [esp + 0x54]
jmp 0x51312b
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
movzx ebx, byte [edx + 5]
test bl, bl
je 0x51313e
mov ebx, dword [edx + 0x14]
cmp eax, ebx
jg 0x513140
mov ebx, eax
mov ebp, ebx
shl ebx, 1
test ebx, ebx
jle 0x513248
movzx esi, byte [edx + 9]
xchg esi, eax
test al, al
xchg esi, eax
je 0x51316b
movzx esi, byte [edx + 8]
xchg esi, eax
test al, al
xchg esi, eax
je 0x513165
mov ebx, ebp
shl ebx, 2
lea ebx, [ebx + ebp - 1]
jmp 0x513178
movzx esi, byte [edx + 8]
xchg esi, eax
test al, al
xchg esi, eax
je 0x513178
add ebx, 2
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebx
movzx esi, byte [edx + 4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5131bf
mov esi, dword [edx + 0x10]
cmp ebx, esi
jge 0x5131bb
mov eax, ebx
movzx ebx, byte [edx + 6]
test bl, bl
jne 0x5131c1
mov dword [esp], edx
sub esi, eax
mov dword [esp + 4], esi
call fcn.00512160
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x2c]
jmp 0x5131c1
mov eax, ebx
jmp 0x5131c1
mov eax, ebx
mov ebx, dword [edx]
mov esi, dword [ebx + 8]
mov edi, ecx
mov ecx, dword [ebx]
mov ebx, dword [ebx + 4]
movzx edx, byte [edx + 8]
test dl, dl
je 0x513232
lea edx, [ebx + 2]
mov ebx, dword [esp + 0x5c]
movzx ebx, byte [ebx + 0x10]
cmp esi, edx
jae 0x513227
mov byte [esp + 0x23], bl
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 2
lea eax, [0x67e920]
mov dword [esp + 0x10], eax
call fcn.00447800
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
movzx ebx, byte [esp + 0x23]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
mov byte [edx + ecx - 2], 0x30
mov byte [edx + ecx - 1], bl
jmp 0x513234
mov edx, ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
jmp 0x513287
movzx eax, byte [edx + 4]
test al, al
je 0x51325f
mov eax, dword [edx + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00512160
add esp, 0x40
ret
movzx eax, byte [esp + 0x23]
mov byte [edx + ecx - 2], al
xchg ebp, eax
mov byte [edx + ecx - 1], al
xchg ebp, eax
mov eax, dword [esp + 0x28]
inc eax
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp ebx, ebp
jge 0x513415
mov ebp, dword [esp + 0x44]
movzx ebp, byte [ebp + 9]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x513372
test ebx, ebx
jle 0x51336e
inc edx
cmp esi, edx
jae 0x5132ec
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x67e920]
mov dword [esp + 0x10], eax
call fcn.00447800
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
mov byte [edx + ecx - 1], 0x20
mov ebp, dword [esp + 0x44]
movzx ebp, byte [ebp + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x51336a
add edx, 2
mov ebp, dword [esp + 0x5c]
movzx ebp, byte [ebp + 0x10]
cmp esi, edx
jb 0x513312
test edi, edi
jmp 0x51335d
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 2
lea eax, [0x67e920]
mov dword [esp + 0x10], eax
call fcn.00447800
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
test eax, eax
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
movzx ebp, byte [esp + 0x23]
mov edi, dword [esp + 0x50]
mov byte [edx + ecx - 2], 0x30
xchg ebp, eax
mov byte [edx + ecx - 1], al
xchg ebp, eax
jmp 0x513374
test edi, edi
jmp 0x513374
test edi, edi
jmp 0x513374
test edi, edi
je 0x51337c
movzx ebp, byte [edi + ebx]
jmp 0x513394
mov ebp, ecx
mov ecx, dword [esp + 0x48]
movzx ecx, byte [ebx + ecx]
mov dword [esp + 0x30], eax
mov eax, ecx
mov ecx, ebp
mov ebp, eax
mov eax, dword [esp + 0x30]
xchg ebp, eax
mov byte [esp + 0x21], al
xchg ebp, eax
add edx, 2
xchg ebp, eax
shr al, 4
xchg ebp, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
mov ebx, dword [esp + 0x5c]
movzx ebp, byte [ebp + ebx]
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
movzx ebp, byte [esp + 0x21]
and ebp, 0xf
movzx ebp, byte [ebp + ebx]
cmp esi, edx
jae 0x513263
xchg ebp, eax
mov byte [esp + 0x22], al
xchg ebp, eax
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 2
lea eax, [0x67e920]
mov dword [esp + 0x10], eax
call fcn.00447800
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x5c]
movzx ebp, byte [esp + 0x22]
mov edi, dword [esp + 0x50]
jmp 0x513263
mov ebx, dword [esp + 0x44]
mov edi, dword [ebx]
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov edx, dword [0xa43e50]
test edx, edx
jne 0x51342f
mov dword [edi], ecx
jmp 0x51343a
mov edx, eax
mov eax, ecx
call fcn.0045f670
mov eax, edx
movzx ecx, byte [ebx + 4]
test cl, cl
je 0x51345f
mov ecx, dword [ebx + 0x10]
cmp eax, ecx
jge 0x51345f
movzx edx, byte [ebx + 6]
test dl, dl
je 0x51345f
mov dword [esp], ebx
sub ecx, eax
mov dword [esp + 4], ecx
call fcn.00512160
add esp, 0x40
ret
call fcn.0045e260
jmp fcn.00513100