Function at 0x457040
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x220], edx
mov ecx, dword [ebp + 0x10]
lea esi, [eax + 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x218], edx
mov byte [ebp - 0x20d], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x21c], edi
test ecx, ecx
je 0x457156
mov edx, dword [ebp + 0xc]
jns 0x45710d
mov edi, ecx
mov dword [ebp - 0x214], 0x104
and edi, 0x7fffffff
add edi, edx
movzx eax, word [edi]
cmp ax, word [ebp - 0x214]
jae 0x457107
push eax
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004afa46
movzx ecx, word [edi]
xor edx, edx
push dword [ebp - 0x21c]
mov word [ebp + ecx*2 - 0x20c], dx
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0048b1ae
add esp, 0x14
test eax, eax
je 0x45714a
mov al, byte [ebp - 0x20d]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x21c]
movzx eax, word [ebp + 0x18]
cmp ecx, eax
jne 0x4570f0
push dword [ebp - 0x218]
mov ecx, ebx
push 0x409
push edi
push edx
mov edx, dword [ebp - 0x220]
push esi
call fcn.004572e0
add esp, 0x14
test al, al
je 0x4570f0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x224]
movzx eax, word [eax + 0xc]
xor ecx, ecx
mov ebx, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x214], eax
cmp cx, ax
jae 0x4571ab
nop dword [eax]
mov ecx, dword [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x220]
push ebx
push dword [ebp - 0x21c]
push dword [ebp + 0xc]
push esi
call fcn.004572e0
add esp, 0x14
test al, al
jne 0x4572b5
mov edx, dword [ebp - 0x218]
inc edi
add esi, 8
cmp di, word [ebp - 0x214]
jb 0x457170
mov eax, dword [ebp - 0x224]
xor ecx, ecx
xor edi, edi
movzx eax, word [eax + 0xe]
mov dword [ebp - 0x214], eax
cmp cx, ax
jae 0x4572c8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jns 0x457209
push dword [ebp - 0x218]
mov edx, dword [ebp - 0x220]
and eax, 0x7fffffff
push ebx
push dword [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
push ecx
mov ecx, dword [ebp - 0x228]
push eax
call fcn.00457040
add esp, 0x18
test al, al
jne 0x4572b5
jmp 0x457212
test ecx, ecx
js 0x457212
cmp bx, cx
je 0x457236
inc edi
add esi, 8
cmp di, word [ebp - 0x214]
jb 0x4571c8
mov al, byte [ebp - 0x20d]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp - 0x228]
xor edx, edx
mov edi, dword [eax + ecx]
mov eax, dword [eax + ecx + 4]
lea ecx, [esi + 0x18]
mov dword [ebp - 0x224], eax
movzx eax, word [esi + 0x14]
add ecx, eax
movzx eax, word [esi + 6]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x457294
mov esi, dword [ecx + 0xc]
cmp edi, esi
jb 0x45727d
mov eax, dword [ecx + 8]
add eax, esi
cmp edi, eax
jb 0x457287
mov eax, dword [ebp - 0x214]
inc edx
add ecx, 0x28
cmp edx, eax
jb 0x457267
jmp 0x457294
mov ebx, dword [ecx + 0x14]
sub ebx, esi
add ebx, edi
add ebx, dword [ebp - 0x220]
mov esi, dword [ebp - 0x218]
mov ecx, esi
mov edi, dword [ebp - 0x224]
push esi
push edi
call fcn.00417a50
push edi
push ebx
push dword [esi]
call fcn.0047e880
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cf84
mov esp, ebp
pop ebp
ret
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cf84
mov esp, ebp
pop ebp
ret