Function at 0x40a840
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x114
mov ecx, 0x43
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x128]
mov al, byte [edi + 4]
cmp al, 0xf
je 0x40a918
cmp al, 0x25
jne 0x40aa90
mov eax, dword [0x4226e0]
mov bl, byte [esp + 0x13]
test eax, eax
mov byte [esp + 0x14], 0
jbe 0x40a8fc
mov esi, dword [esp + 0x14]
push esi
call fcn.0040f730
mov ebp, eax
add esp, 4
xor ecx, ecx
test ebp, ebp
jbe 0x40a8df
mov eax, dword [0x4223e0]
and esi, 0xff
mov eax, dword [eax + esi*4]
mov esi, dword [edi]
mov edx, eax
cmp esi, dword [edx]
je 0x40a8b8
inc ecx
add edx, 0x14
cmp ecx, ebp
jb 0x40a8aa
jmp 0x40a8df
lea edx, [ecx + ecx*4]
mov esi, dword [edi + 8]
xor ebx, ebx
lea edx, [eax + edx*4]
mov al, byte [edx + 6]
mov bl, byte [edx + 7]
mov byte [esp + 0x13], al
mov eax, dword [edx + 8]
cmp esi, eax
je 0x40aa90
cmp ecx, ebp
mov dword [edx + 8], esi
jb 0x40a8fc
mov al, byte [esp + 0x14]
inc al
mov byte [esp + 0x14], al
mov eax, dword [0x4226e0]
mov ecx, dword [esp + 0x14]
and ecx, 0xff
cmp ecx, eax
jb 0x40a883
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4226e0]
and eax, 0xff
cmp eax, ecx
jae 0x40aa90
jmp 0x40a9bb
mov eax, dword [0x4226e0]
mov bl, byte [esp + 0x13]
test eax, eax
mov byte [esp + 0x14], 0
jbe 0x40a9a4
mov esi, dword [esp + 0x14]
push esi
call fcn.0040f730
mov ebp, eax
add esp, 4
xor ecx, ecx
test ebp, ebp
jbe 0x40a987
mov edx, dword [0x4223e0]
and esi, 0xff
mov eax, dword [edx + esi*4]
mov esi, dword [edi]
mov edx, eax
cmp esi, dword [edx]
je 0x40a960
inc ecx
add edx, 0x14
cmp ecx, ebp
jb 0x40a952
jmp 0x40a987
lea edx, [ecx + ecx*4]
mov esi, dword [edi + 8]
xor ebx, ebx
lea edx, [eax + edx*4]
mov al, byte [edx + 6]
mov bl, byte [edx + 7]
mov byte [esp + 0x13], al
mov eax, dword [edx + 8]
cmp esi, eax
je 0x40aa90
cmp ecx, ebp
mov dword [edx + 8], esi
jb 0x40a9a4
mov al, byte [esp + 0x14]
inc al
mov byte [esp + 0x14], al
mov eax, dword [0x4226e0]
mov ecx, dword [esp + 0x14]
and ecx, 0xff
cmp ecx, eax
jb 0x40a92a
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4226e0]
and eax, 0xff
cmp eax, ecx
jae 0x40aa90
mov dl, byte [edi + 4]
mov ecx, dword [0x422800]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], 1
mov byte [esp + 0x20], 3
mov byte [esp + 0x21], 0
mov dx, word [ecx + eax*4]
lea eax, [esp + 0x22]
push edx
push eax
call fcn.0040ca40
mov edx, dword [edi + 8]
mov cl, byte [esp + 0x1b]
lea eax, [esp + 0x2f]
push edx
push eax
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0
call fcn.0040ca20
mov cl, byte [edi + 4]
add esp, 0x10
cmp cl, 0x25
mov eax, 0x14
jne 0x40aa54
mov dl, byte [edi + 0xd]
mov cl, byte [edi + 0xc]
mov al, byte [edi + 0xe]
mov byte [esp + 0x2d], dl
mov dl, byte [edi + 0x10]
mov byte [esp + 0x2c], cl
mov cl, byte [edi + 0xf]
push edx
mov byte [esp + 0x32], al
mov byte [esp + 0x33], cl
call fcn.0040c160
mov cl, byte [edi + 0x12]
mov byte [esp + 0x34], al
mov al, byte [edi + 0x11]
add esp, 4
mov byte [esp + 0x31], al
mov byte [esp + 0x32], cl
mov eax, 0x1b
sub al, 2
mov byte [esp + 0x19], al
call fcn.0040d000
mov esi, eax
xor bl, bl
test esi, esi
jbe 0x40aa90
lea edx, [esp + 0x18]
push 1
push edx
mov byte [esp + 0x11f], bl
call fcn.004041a0
add esp, 8
inc bl
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
and eax, 0xff
cmp eax, esi
jb 0x40aa67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret