Function at 0x512d90
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x14670ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x513014
sub esp, 0x3c
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + 4]
test cl, cl
je 0x512f6a
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x512f6a
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.0048bf00
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x10]
movzx edx, byte [eax + 6]
sub ecx, dword [esp + 8]
test dl, dl
je 0x512eb0
mov dword [esp + 0x20], ecx
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 4]
mov esi, dword [esp + 0x48]
lea edi, [esi + ebp]
mov ecx, dword [edx]
cmp ebx, edi
jae 0x512e40
mov dword [esp + 0x28], ebp
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
lea eax, [0xc62fa0]
mov dword [esp + 0x10], eax
call fcn.00471cb0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], ecx
lea eax, [ecx + ebp]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00477810
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [0x14674f0]
test eax, eax
jne 0x512e85
mov eax, dword [esp + 0x38]
jmp 0x512e95
call fcn.00476e80
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.005129b0
jmp 0x512f66
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005129b0
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x48]
lea ebp, [ebx + edx]
mov esi, dword [eax]
cmp ecx, ebp
jae 0x512f0f
mov dword [esp + 0x28], edx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
lea eax, [0xc62fa0]
mov dword [esp + 0x10], eax
call fcn.00471cb0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x38], esi
lea eax, [esi + edx]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00477810
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [0x14674f0]
test eax, eax
jne 0x512f54
mov eax, dword [esp + 0x38]
jmp 0x512f64
call fcn.00476e80
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
add esp, 0x3c
ret
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x48]
lea ebp, [ebx + edx]
mov esi, dword [eax]
cmp ecx, ebp
jae 0x512fb9
mov dword [esp + 0x28], edx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
lea eax, [0xc62fa0]
mov dword [esp + 0x10], eax
call fcn.00471cb0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebp
lea eax, [esi + edx]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00477810
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [0x14674f0]
test eax, eax
jne 0x512ffe
mov eax, dword [esp + 0x38]
jmp 0x51300e
call fcn.00476e80
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
add esp, 0x3c
ret
call fcn.00475a70
jmp fcn.00512d90