Function at 0x402e10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebp
push esi
mov esi, dword [ebx + 0x18]
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 4]
test edi, edi
mov dword [esp + 0x1c], esi
jne 0x402e43
mov eax, dword [esi + 0xc]
push ebx
call eax
add esp, 4
test al, al
jne 0x402e3c
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20
ret
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, ecx
xor edx, edx
mov dh, byte [ebp]
sub edi, 1
add ebp, 1
test edi, edi
mov dword [esp + 0x10], edx
jne 0x402e6a
mov eax, dword [esi + 0xc]
push ebx
call eax
add esp, 4
test al, al
je 0x402e33
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, ecx
movzx edx, byte [ebp]
mov eax, dword [esp + 0x10]
add eax, edx
sub eax, 2
sub edi, 1
add ebp, 1
test eax, eax
mov dword [esp + 0x10], eax
jle 0x40313f
lea esp, [esp]
sub dword [esp + 0x10], 1
test edi, edi
jne 0x402eb1
mov eax, dword [esi + 0xc]
push ebx
call eax
add esp, 4
test al, al
je 0x402e33
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov dword [esp + 0xc], ecx
mov edi, ecx
movzx esi, byte [ebp]
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x53
mov ecx, dword [ebx]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [ecx + 0x18], esi
mov edx, dword [ebx]
mov dword [edx + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push 1
sub edi, 1
push ebx
mov dword [esp + 0x14], edi
add ebp, 1
call ecx
add esp, 8
cmp esi, 4
jl 0x402f08
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x20
mov eax, dword [ebx]
mov dword [eax + 0x18], esi
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call edx
add esp, 4
cmp dword [ebx + esi*4 + 0x90], 0
jne 0x402f22
push ebx
call fcn.00406a20
add esp, 4
mov dword [ebx + esi*4 + 0x90], eax
cmp dword [esp + 0x20], 0
mov edx, dword [ebx + esi*4 + 0x90]
mov dword [esp + 0x28], edx
je 0x402f6a
cmp dword [esp + 0x10], 0x80
jge 0x402f5c
mov ecx, 0x20
mov eax, 0x10001
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sar ecx, 1
mov dword [esp + 0x14], ecx
jmp 0x402f99
mov dword [esp + 0x14], 0x40
mov ecx, dword [esp + 0x14]
jmp 0x402f99
mov eax, 0x40
cmp dword [esp + 0x10], eax
jge 0x402f93
mov eax, 0x10001
mov ecx, 0x20
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov ecx, eax
jmp 0x402f99
mov dword [esp + 0x14], eax
mov ecx, eax
lea eax, [ecx - 4]
cmp eax, 0x2d
ja case.0x402fa8.5
movzx eax, byte [eax + 0x403184]
jmp dword [eax*4 + 0x403168]
mov dword [esp + 0x18], 0x503828
jmp 0x402ff3
mov dword [esp + 0x18], 0x5037c0
jmp 0x402ff3
mov dword [esp + 0x18], 0x503740
jmp 0x402ff3
mov dword [esp + 0x18], 0x503698
jmp 0x402ff3
mov dword [esp + 0x18], 0x5035c8
jmp 0x402ff3
mov dword [esp + 0x18], 0x5034c0
jmp 0x402ff3
mov dword [esp + 0x18], 0x503380
test ecx, ecx
mov dword [esp + 0x24], 0
jle 0x4030af
cmp dword [esp + 0x20], 0
je 0x40305f
test edi, edi
jne 0x40302a
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
push ebx
call ecx
add esp, 4
test al, al
je 0x402e33
mov edx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, edx
xor eax, eax
mov ah, byte [ebp]
sub edi, 1
add ebp, 1
test edi, edi
mov esi, eax
jne 0x403057
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0xc]
push ebx
call ecx
add esp, 4
test al, al
je 0x402e33
mov edx, dword [edi + 4]
mov ebp, dword [edi]
mov edi, edx
movzx eax, byte [ebp]
add esi, eax
jmp 0x403083
test edi, edi
jne 0x40307f
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
push ebx
call ecx
add esp, 4
test al, al
je 0x402e33
mov edx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, edx
movzx esi, byte [ebp]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esp + 0x28]
mov word [edx + ecx*2], si
mov ecx, dword [esp + 0x14]
add eax, 1
sub edi, 1
add ebp, 1
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x403003
mov eax, dword [ebx]
cmp dword [eax + 0x68], 2
jl 0x403121
lea esi, [edx + 4]
mov dword [esp + 0x24], 8
mov eax, dword [ebx]
movzx ecx, word [esi - 4]
add eax, 0x18
mov dword [eax], ecx
movzx edx, word [esi - 2]
mov dword [eax + 4], edx
movzx ecx, word [esi]
mov dword [eax + 8], ecx
movzx edx, word [esi + 2]
mov dword [eax + 0xc], edx
movzx ecx, word [esi + 4]
mov dword [eax + 0x10], ecx
movzx edx, word [esi + 6]
mov dword [eax + 0x14], edx
movzx ecx, word [esi + 8]
mov dword [eax + 0x18], ecx
movzx edx, word [esi + 0xa]
mov dword [eax + 0x1c], edx
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x5f
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push 2
push ebx
call edx
add esp, 8
add esi, 0x10
sub dword [esp + 0x24], 1
jne 0x4030c2
mov ecx, dword [esp + 0x14]
sub dword [esp + 0x10], ecx
cmp dword [esp + 0x20], 0
je 0x403130
sub dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x1c]
jg 0x402e90
cmp dword [esp + 0x10], 0
je 0x403159
mov eax, dword [ebx]
mov dword [eax + 0x14], 0xc
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call edx
add esp, 4
mov dword [esi + 4], edi
pop edi
mov dword [esi], ebp
pop esi
mov al, 1
pop ebp
add esp, 0x20
ret