Function at 0x407da0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
add dword [esi + 0x60], eax
lea ebx, [esi + 0xc]
mov eax, dword [esi + 0x60]
cmp ax, 0xc8
jb 0x407e32
mov ecx, dword [esi + 0x18]
mov eax, ecx
mov edx, dword [ebx]
sub eax, edx
test eax, 0xfffffff0
jg 0x407e23
mov eax, dword [esi + 0x1c]
sub ecx, eax
mov ebp, dword [esp + 0x24]
sar ecx, 4
sub ebp, eax
cmp ecx, 0xf4240
jg 0x407f9e
sub edx, eax
add ecx, ecx
mov eax, 0xf4240
sar edx, 4
cmp ecx, eax
cmovg ecx, eax
cmp ecx, edx
jge 0x407e07
mov ecx, edx
cmp ecx, eax
jg 0x407fa6
push 1
push ecx
push esi
call fcn.00408ab0
mov edi, dword [esi + 0x1c]
add esp, 0xc
add edi, ebp
push esi
call fcn.00414270
add esp, 4
jmp 0x407e36
mov edi, dword [esp + 0x24]
push esi
call fcn.00414270
add esp, 4
jmp 0x407e36
mov edi, dword [esp + 0x24]
movzx eax, byte [edi + 8]
and eax, 0x3f
cmp eax, 6
je 0x407e6f
cmp eax, 0x16
je 0x407f7c
cmp eax, 0x26
je 0x407f57
push edi
push esi
call fcn.004093a0
mov edi, eax
add esp, 8
movzx eax, byte [edi + 8]
and eax, 0x3f
cmp eax, 6
jne 0x407e42
lea ebx, [esi + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx]
sub eax, edi
mov dword [esp + 0x14], edx
sar eax, 4
movzx ebp, byte [edx + 6]
dec eax
movzx edx, byte [edx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
sub eax, dword [ebx]
sar eax, 4
mov dword [esp + 0x20], edx
cmp eax, edx
jg 0x407ecf
mov eax, dword [esi + 0x10]
sub edi, dword [esi + 0x1c]
mov dword [esp + 0x10], edi
cmp dword [eax + 0xc], 0
jle 0x407ebc
push esi
call fcn.0040b980
mov edx, dword [esp + 0x24]
lea ebx, [esi + 0xc]
add esp, 4
push 1
push edx
push esi
call fcn.004081f0
mov edi, dword [esi + 0x1c]
add esp, 0xc
add edi, dword [esp + 0x10]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x407ee4
push esi
call fcn.004142a0
add esp, 4
mov edx, eax
mov cx, word [esp + 0x28]
xor eax, eax
mov word [edx + 0x20], cx
mov ecx, dword [esp + 0x20]
inc ecx
mov word [edx + 0x22], ax
mov eax, dword [esp + 0x14]
shl ecx, 4
add ecx, edi
mov dword [edx], edi
mov dword [edx + 4], ecx
mov dword [esi + 0x14], edx
mov eax, dword [eax + 0x34]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
jge 0x407f2e
sub ebp, eax
nop dword [eax]
mov eax, dword [ebx]
mov byte [eax + 8], 0
add dword [ebx], 0x10
sub ebp, 1
jne 0x407f20
test edx, edx
je 0x407f45
push edx
mov eax, 4
push esi
mov word [edx + 0x22], ax
call fcn.004185f0
add esp, 8
mov eax, dword [esi + 0x60]
sub eax, dword [esp + 0x2c]
pop edi
mov dword [esi + 0x60], eax
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [edi]
push dword [eax + 0xc]
push dword [esp + 0x2c]
push edi
push esi
call fcn.004090e0
mov eax, dword [esi + 0x60]
add esp, 0x10
sub eax, dword [esp + 0x2c]
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [edi]
push dword [esp + 0x2c]
push edi
push esi
call fcn.004090e0
mov eax, dword [esi + 0x60]
add esp, 0x10
sub eax, dword [esp + 0x2c]
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 5
push esi
call fcn.00408cc0
push 1
push 0xf4308
push esi
call fcn.00408ab0
add esp, 0xc
push str.stack_overflow
push esi
call fcn.004076e0
int3