Function at 0x1002a91c
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x100d1144
call fcn.100ce110
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
cmp eax, 0x454c4946
mov dword [edi], eax
je 0x1002a957
cmp eax, 2
jbe 0x1002a94f
cmp eax, 0x44414142
je 0x1002a94f
xor eax, eax
jmp 0x1002ab42
push 1
pop eax
jmp 0x1002ab42
movzx eax, word [esi + 4]
movzx ecx, word [esi + 6]
test al, 1
mov dword [ebp - 0x10], ecx
jne 0x1002ab40
push 1
lea edx, [eax + ecx*2]
mov ecx, dword [ebp + 0xc]
pop ebx
shl ebx, cl
dec ebx
dec ebx
cmp edx, ebx
ja 0x1002ab40
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002ab40
mov edx, dword [ebp + 0x10]
dec ecx
cmp ecx, edx
jne 0x1002ab40
cmp eax, 0x30
jb 0x1002a9ab
mov ecx, dword [esi + 0x2c]
cmp ecx, dword [ebp + 0x14]
je 0x1002a9ab
test ecx, ecx
jne 0x1002ab40
mov bx, word [eax + esi]
add eax, esi
cmp dword [ebp - 0x10], 1
mov dword [ebp + 8], 1
jbe 0x1002a9f3
add eax, 2
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shl eax, cl
cmp word [eax + esi - 2], bx
lea eax, [eax + esi - 2]
jne 0x1002ab40
mov ecx, dword [ebp + 0x10]
inc dword [ebp + 8]
add dword [ebp + 0x10], 2
mov cx, word [ecx]
mov word [eax], cx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002a9c4
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov cx, word [esi + 0x16]
movzx eax, word [esi + 0x14]
mov word [edi + 6], cx
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x18]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp + 8], ebx
mov dword [edi + 8], ecx
mov ecx, dword [esi + 0x24]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
shl edx, cl
cmp eax, edx
jae 0x1002ab40
test al, 7
jne 0x1002ab40
test bl, 7
jne 0x1002ab40
cmp ebx, edx
ja 0x1002ab40
cmp dword [ebp + 0x10], edx
jne 0x1002ab40
cmp eax, ebx
mov dword [ebp + 0xc], eax
jae 0x1002ab40
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
add ecx, esi
push eax
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x10], eax
call fcn.10029793
cmp eax, ebx
je 0x1002ab89
cmp dword [ebp + 0x10], eax
jb 0x1002ab89
add dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x70]
cmp eax, 0xffffffff
je 0x1002ab53
sub eax, 0x10
je 0x1002ab16
sub eax, 0x20
je 0x1002aade
sub eax, 0x50
je 0x1002aad5
sub eax, 0x40
je 0x1002aac7
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x1002ab28
lea eax, [ebp - 0x70]
push eax
call fcn.1002cf18
jmp 0x1002ab28
lea eax, [ebp - 0x60]
lea ecx, [edi + 0x60]
push eax
call fcn.1002ce74
jmp 0x1002ab28
lea eax, [ebp - 0x70]
lea ecx, [edi + 0x18]
push eax
jmp 0x1002aac0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push dword [ebp - 0x60]
call fcn.1002967d
test al, al
je 0x1002ab6d
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x24]
push eax
call fcn.1002d050
cmp dword [ebp - 0x20], ebx
je 0x1002ab28
push dword [ebp - 0x20]
call fcn.10003419
pop ecx
jmp 0x1002ab28
push dword [ebp - 0x5c]
lea ecx, [edi + 0x40]
push dword [ebp - 0x60]
call fcn.10029727
test al, al
je 0x1002ab89
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002ab8d
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], eax
jb 0x1002aa59
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x1002ab89
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002ab8d
mov al, bl
jmp 0x1002ab42
cmp dword [ebp - 0x20], ebx
je 0x1002ab7b
push dword [ebp - 0x20]
call fcn.10003419
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1002ab8d
jmp 0x1002ab40
xor bl, bl
jmp 0x1002ab5d