Function at 0x512af0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x14670ec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x512d7d
sub esp, 0x3c
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + 4]
test cl, cl
je 0x512cd3
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x512cd3
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
call fcn.0048bdb0
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x10]
movzx edx, byte [eax + 6]
sub ecx, dword [esp + 0xc]
test dl, dl
je 0x512c19
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, [ebp + esi]
mov ecx, dword [edx]
cmp ebx, edi
jae 0x512ba9
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 0x512bee
mov eax, dword [esp + 0x38]
jmp 0x512bfe
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 0x512ccf
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 0x512c78
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 0x512cbd
mov eax, dword [esp + 0x38]
jmp 0x512ccd
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 0x512d22
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 + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [0x14674f0]
test eax, eax
jne 0x512d67
mov eax, dword [esp + 0x38]
jmp 0x512d77
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.00512af0