Function at 0x412f50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
call fcn.00412d40
add esp, 4
test eax, eax
jne 0x41321e
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov cl, byte [eax + 3]
mov al, byte [esi + 0x41]
test al, al
mov dword [esp + 0x14], ecx
jne 0x412f93
mov edx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword [edx], 0xffffffff
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ebx, dword [esi + 0x18]
xor ecx, ecx
or ebp, 0xffffffff
xor edi, edi
mov cx, word [ebx + 0x14]
mov al, byte [ebx + 3]
dec ecx
mov dword [esp + 0x20], ebx
test al, al
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], ecx
jne 0x412fc1
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4131d6
test ecx, ecx
jl 0x41317a
lea eax, [ecx + edi]
mov word [esi + 0x3a], 0
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x1c], eax
mov al, byte [ebx + 3]
test al, al
je 0x4130a4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412ff0
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x1c]
push eax
push ebx
call fcn.004128a0
xor ecx, ecx
mov edi, eax
mov cl, byte [ebx + 9]
mov al, byte [ebx + 7]
add esp, 8
add edi, ecx
test al, al
je 0x413031
xor eax, eax
mov al, byte [edi]
cmp eax, 0x7f
mov dword [esp + 0x18], eax
ja 0x413021
mov eax, 1
jmp 0x41302f
lea edx, [esp + 0x18]
push edx
push edi
call fcn.0040e680
add esp, 8
add edi, eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.0040e500
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
add esp, 8
cmp eax, ecx
jg 0x413064
jl 0x413057
cmp edx, dword [esp + 0x38]
jae 0x413064
mov eax, dword [esi + 0x1c]
or ebp, 0xffffffff
inc eax
mov dword [esp + 0x30], eax
jmp 0x41308d
cmp eax, ecx
jl 0x413157
jg 0x413078
cmp edx, dword [esp + 0x38]
jbe 0x413157
mov ebp, 1
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
cmp eax, ecx
jg 0x413176
mov edi, eax
jmp 0x412fc9
lea ecx, [esp + 0x1c]
push 0
push ecx
push esi
call fcn.00412c80
mov edi, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov ebp, eax
mov eax, dword [esp + 0x28]
cdq
add esp, 0xc
cmp edx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
jl 0x4130ed
jg 0x4130d3
cmp eax, ecx
jb 0x4130ed
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push edx
push eax
push ebp
push ecx
mov ecx, dword [esi + 0x10]
push ecx
call dword [esi + 0xc]
add esp, 0x14
mov ebp, eax
jmp 0x413140
push 1
push ecx
call fcn.0040d920
mov edi, eax
add esp, 8
test edi, edi
je 0x4131e3
mov edx, dword [esp + 0x24]
push edi
push edx
push 0
push esi
call fcn.00412a50
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
mov ebx, eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edi
push edx
push eax
call dword [esi + 0xc]
push edi
mov ebp, eax
call fcn.0040d9b0
add esp, 0x28
test ebx, ebx
jne 0x4131f0
mov ebx, dword [esp + 0x20]
test ebp, ebp
je 0x413159
jge 0x413085
mov eax, dword [esi + 0x1c]
inc eax
mov dword [esp + 0x30], eax
jmp 0x41308d
xor ebp, ebp
mov al, byte [ebx + 6]
test al, al
je 0x4131fa
mov al, byte [ebx + 4]
test al, al
jne 0x4131fa
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x30]
mov al, byte [ebx + 4]
test al, al
jne 0x413212
xor eax, eax
mov ax, word [ebx + 0x14]
cmp edi, eax
jl 0x4131a6
mov edx, dword [ebx + 0x44]
xor ecx, ecx
mov cl, byte [ebx + 8]
lea eax, [ecx + edx + 8]
push eax
call fcn.004118b0
add esp, 4
jmp 0x4131b6
push edi
push ebx
call fcn.004128a0
push eax
call fcn.004118b0
add esp, 0xc
test eax, eax
je 0x413212
push eax
push esi
mov dword [esi + 0x1c], edi
mov word [esi + 0x3a], 0
call fcn.00412e00
add esp, 8
test eax, eax
jne 0x41321e
jmp 0x412f93
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41321c
pop edi
pop esi
mov dword [eax], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41321c
mov dword [eax], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret