Function at 0x407c80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor eax, eax
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea esi, [edi + 8]
jmp 0x407ca7
xor eax, eax
mov bx, word [esi + 4]
cmp bx, ax
je 0x40815b
cmp bx, 0xd
je 0x40815b
cmp bx, 1
jne 0x407cd0
cmp word [esi + 8], 0x13
jae 0x407cd0
mov ebx, 9
and ebx, 0xffff
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
lea ebp, [edi + eax*4]
mov dword [esp + 0x18], ebp
add ebp, 0x1c4
mov ecx, ebp
call fcn.0043b290
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi]
mov dword [esp + 0x28], ecx
push ecx
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
fadd dword [0x4851d4]
fmul dword [0x4851d0]
fstp dword [esp]
fild dword [esp + 0x2c]
push 0
push ecx
mov ecx, ebp
fadd dword [0x4851d4]
fmul dword [0x4851d0]
fstp dword [esp]
call fcn.0043b5a0
cmp word [esi + 4], 4
jne 0x407dc3
movsx eax, word [esi - 4]
mov dword [esp + 0x28], eax
push ecx
fild dword [esp + 0x2c]
mov ecx, ebp
fmul dword [0x4851fc]
fstp dword [esp]
call fcn.0043b390
lea ecx, [edi + 0x610]
call fcn.0043b290
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi]
mov dword [esp + 0x28], ecx
push ecx
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
fadd dword [0x4851d4]
fmul dword [0x4851d0]
fstp dword [esp]
fild dword [esp + 0x2c]
push 0
push ecx
lea ecx, [edi + 0x610]
fadd dword [0x4851d4]
fmul dword [0x4851d0]
fstp dword [esp]
call fcn.0043b5a0
mov ecx, dword [edi]
lea eax, [edi + 0x610]
push eax
add ecx, 0x18fb60
call fcn.0043ea00
cmp word [esi + 4], 0xc
jne 0x407e3d
movsx eax, word [esi - 4]
mov dword [esp + 0x28], eax
push ecx
fild dword [esp + 0x2c]
mov ecx, ebp
fmul dword [0x4851fc]
fstp dword [esp]
call fcn.0043b390
xor eax, eax
mov ecx, 0xa
mov ax, word [esi + 8]
cdq
idiv ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov dx, word [esi + 0xe]
fild dword [esp + 0x28]
mov word [ecx + 0x20a], dx
lea ecx, [eax + 1]
fmul dword [0x4851e8]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
push edx
push ecx
push eax
xor eax, eax
mov ax, word [edi + 0x6d4]
mov ecx, dword [edi]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
lea ecx, [ecx + eax*4 + 0x1e43e8]
call fcn.00447de0
cmp word [esi + 4], 6
jne 0x407e50
push 0x3fc90fdb
mov ecx, ebp
call fcn.0043b390
cmp word [esi + 4], 0xe
jne 0x407ea5
inc word [esi + 8]
push 0xbfc90fdb
mov ecx, ebp
call fcn.0043b390
push 0xbf800000
push 0
push 0x41300000
mov ecx, ebp
call fcn.0043b5a0
fld dword [esi + 0x14]
fadd dword [0x4852f8]
push 1
mov ecx, dword [edi]
sub esp, 8
add ecx, 0x28cdf4
fstp dword [esp + 4]
fld dword [esi + 0x10]
fadd dword [0x4852f8]
fstp dword [esp]
call fcn.0040b990
cmp word [esi + 4], 3
jne 0x407f56
mov al, byte [esp + 0x13]
inc word [esi + 8]
test al, al
je 0x407f02
mov ecx, dword [edi]
mov byte [esp + 0x13], 0
mov ax, word [ecx + 0x2b4698]
sub ax, word [ecx + 0x2b469a]
inc eax
cmp ax, 0xa
jae 0x407f02
and eax, 0xffff
mov edx, dword [esi + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
fild dword [esp + 0x28]
push ecx
add ecx, 0x28cdf4
fmul dword [0x4851e8]
fstp dword [esp]
push edx
push eax
call fcn.0040b860
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov cx, word [esi + 8]
add ecx, edx
mov dword [esp + 0x28], ecx
push ecx
fild dword [esp + 0x2c]
mov ecx, ebp
fmul dword [0x4851fc]
fstp dword [esp]
call fcn.0043b390
xor edx, edx
push 0
mov dx, word [esi + 8]
push ecx
mov dword [esp + 0x30], edx
mov ecx, ebp
fild dword [esp + 0x30]
fmul dword [0x4851e8]
fiadd dword [esp + 0x28]
fsin
fadd qword [0x4852f0]
fstp dword [esp]
push 0
call fcn.0043b520
mov ecx, dword [edi]
push ebp
add ecx, 0x18fb60
call fcn.0043ea00
cmp word [esi + 4], 3
jne 0x407fd5
lea ecx, [edi + 0x804]
call fcn.0043b290
mov ebp, dword [esp + 0x18]
lea eax, [ebx + ebx*4 + 0x19]
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*4]
xor eax, eax
mov dword [edi + 0x834], ecx
mov edx, dword [ebp + 0x1fc]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x83c], edx
mov ax, word [esi + 8]
sub ecx, eax
mov dword [esp + 0x28], ecx
push ecx
fild dword [esp + 0x2c]
lea ecx, [edi + 0x804]
fmul dword [0x4851fc]
fstp dword [esp]
call fcn.0043b390
mov ecx, dword [edi]
lea eax, [edi + 0x804]
push eax
add ecx, 0x18fb60
call fcn.0043ea00
jmp 0x407fd9
mov ebp, dword [esp + 0x18]
cmp word [esi + 4], 2
je 0x408090
mov ax, word [esi + 0xa]
test ax, ax
je 0x408090
mov edx, dword [edi]
test byte [edx + 0x604], 1
jne 0x408090
dec eax
mov ecx, dword [esp + 0x14]
mov word [esi + 0xa], ax
xor eax, eax
mov ax, word [esi + 6]
push ecx
mov dword [esp + 0x2c], eax
mov ecx, edi
fild dword [esp + 0x2c]
fmul dword [0x4852e8]
call fcn.00407c10
and eax, 0xffff
mov dword [esp + 0x28], eax
fidiv dword [esp + 0x28]
call fcn.00479904
mov ecx, 4
sub ecx, eax
cmp cx, 4
jbe 0x408049
mov ecx, 4
and ecx, 0xffff
lea eax, [ecx + ecx*4]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x1fc]
push eax
lea eax, [ebx + ebx*4 + 0x19]
lea ecx, [edi + edx*4 + 0x868]
mov edx, dword [ebp + 0x1f8]
lea eax, [eax + eax*4]
push edx
mov dword [esp + 0x30], ecx
mov edx, dword [edi + eax*4]
push edx
call fcn.0043b500
mov eax, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
add ecx, 0x18fb60
call fcn.0043ea00
mov ax, word [esi + 4]
cmp ax, 2
je 0x40815b
cmp ax, 5
je 0x40815b
cmp ax, 6
je 0x40815b
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [esi + 6]
push edx
mov dword [esp + 0x2c], ecx
mov ecx, edi
fild dword [esp + 0x2c]
call fcn.00407c10
and eax, 0xffff
mov ecx, dword [edi]
mov dword [esp + 0x28], eax
add ecx, 0x18fb50
fidiv dword [esp + 0x28]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
push eax
push 0x48b8b4
call fcn.00446540
fld dword [esp + 0x18]
fcomp dword [0x4851d4]
fnstsw ax
test ah, 5
jp 0x40815b
fld dword [esp + 0x18]
fcomp dword [0x485248]
fnstsw ax
test ah, 5
jp 0x408134
mov ecx, dword [ebp + 0x1fc]
lea ebx, [ebx + ebx*4 + 0x19]
push 1
push ecx
mov ecx, dword [edi]
lea edx, [ebx + ebx*4]
add ecx, 0x28cdf4
mov eax, dword [edi + edx*4]
push eax
jmp 0x408156
mov eax, dword [edi]
test byte [eax + 0x18], 1
je 0x40815b
mov ecx, dword [ebp + 0x1fc]
lea ebx, [ebx + ebx*4 + 0x19]
push 0
push ecx
lea edx, [ebx + ebx*4]
mov ecx, dword [edi + edx*4]
push ecx
lea ecx, [eax + 0x28cdf4]
call fcn.0040b990
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, 0x14
inc eax
add edx, ecx
add ebp, 5
sub ebx, ecx
add esi, 0x1c
cmp ax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
jb 0x407ca5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret