Function at 0x520f0f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
add eax, 4
push edi
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x70], eax
call fcn.00522c95
cmp esi, 0x16
jb 0x520f5a
lea ecx, [edi - 0x16]
add ecx, esi
jmp 0x520f56
cmp byte [ecx], 0x50
jne 0x520f55
cmp dword [ecx], 0x6054b50
je 0x520f6e
dec ecx
cmp ecx, edi
jae 0x520f48
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00682c16
mov esp, ebp
pop ebp
ret 0xc
mov ax, word [ecx + 0xa]
cmp ax, word [ecx + 8]
jne 0x520f5a
mov ax, word [ecx + 6]
cmp ax, word [ecx + 4]
jne 0x520f5a
mov ecx, dword [ecx + 0x10]
push ebx
xor ebx, ebx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
jmp 0x5210d3
lea edx, [edi + ecx]
cmp dword [edx], 0x2014b50
mov dword [ebp - 0x68], edx
jne 0x5210de
lea eax, [ecx + 0x2e]
cmp esi, eax
jb 0x5210f1
movzx eax, word [edx + 0x1e]
movzx ecx, word [edx + 0x20]
add ecx, eax
movzx eax, word [edx + 0x1c]
add ecx, 0x2e
add eax, ecx
mov ecx, dword [ebp - 0x64]
add ecx, eax
mov dword [ebp - 0x64], ecx
cmp esi, ecx
jb 0x5210f1
mov ecx, dword [edx + 0x2a]
mov dword [ebp - 0x60], ecx
lea eax, [ecx + 0x1e]
cmp esi, eax
jb 0x5210f1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ecx + edi + 0x1c]
movzx eax, word [eax + edi + 0x1a]
add ecx, eax
mov eax, dword [edx + 0x14]
add ecx, 0x1e
add eax, ecx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
add eax, ecx
cmp esi, eax
jb 0x5210f1
push 0xf
pop edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
movzx eax, word [ecx + edi + 0x1a]
push eax
lea eax, [ecx + 0x1e]
mov dword [ebp - 0x48], edx
add eax, edi
mov dword [ebp - 0x4c], ebx
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x5c], bl
call fcn.004192a1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004190ea
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004191aa
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
sub eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x2a]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x60]
mov ax, word [eax + edi + 6]
mov word [ebp - 0x1c], ax
mov ax, word [ecx + 0xa]
mov word [ebp - 0x1a], ax
mov ecx, dword [ecx + 0x26]
mov eax, dword [ebp - 0x18]
shr ecx, 4
and eax, 0xfffffff8
and ecx, 1
or ecx, eax
mov dword [ebp - 0x18], ecx
cmp byte [ebp + 0x10], bl
je 0x5210b0
test cl, 1
jne 0x5210bc
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x80]
call fcn.00522e34
push dword [ebp - 0x14]
call fcn.006a389b
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004191aa
mov ecx, dword [ebp - 0x64]
lea eax, [ecx + 4]
cmp eax, esi
jb 0x520f99
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x80]
push eax
call fcn.00522f95
mov eax, dword [ebp - 0x74]
mov bl, 1
mov dword [eax], edi
lea ecx, [ebp - 0x80]
call fcn.00522910
mov al, bl
pop ebx
jmp 0x520f5c