Function at 0x414cb0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 0x48]
lea eax, [esp + 0xb8]
push ebx
lea ecx, [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x64], edi
call fcn.00460520
mov esi, dword [eax]
add esp, 0xc
mov dword [esp + 0x60], esi
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x1c]
test eax, eax
mov dword [esp + 0x6c], edx
je 0x415201
mov dx, word [edi]
test dx, dx
jle 0x415201
movsx edx, dx
test edx, edx
lea ecx, [edi + 0xa]
mov eax, 0xa
jle 0x414d3b
mov dword [esp + 0x1c], edx
movsx edx, word [ecx + 2]
lea eax, [eax + edx*8 - 0x10]
lea ecx, [ecx + edx*8 + 4]
mov edx, dword [esp + 0x1c]
dec edx
mov dword [esp + 0x1c], edx
jne 0x414d24
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 8]
push ecx
call fcn.004970a0
mov dword [esp + 0x30], eax
mov eax, dword [edi + 2]
sub eax, esi
mov edi, dword [edi + 6]
mov dword [esp + 0x10], eax
add esp, 4
fild dword [esp + 0xc]
fmul qword [ebx + 0x4d]
call fcn.00496fa4
mov edx, dword [esp + 0x64]
mov esi, eax
sub edi, edx
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], edi
add esi, eax
fild dword [esp + 0xc]
fmul qword [ebx + 0x55]
call fcn.00496fa4
mov ecx, dword [ebx + 0x18]
mov edx, dword [esp + 0x58]
add eax, ecx
mov dword [esp + 0x24], 1
lea ecx, [edx + 0xa]
mov edx, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x20], ecx
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [edx + 8], esi
mov dword [edx + 0x10], 0
cmp word [eax], 0
mov dword [esp + 0x44], 0
jle 0x41519d
jmp 0x414dce
mov ecx, dword [esp + 0x20]
movsx edx, word [ecx + 2]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [ebx + 0x4d]
call fcn.00496fa4
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x64]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
sub eax, ecx
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [ebx + 0x55]
call fcn.00496fa4
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x40], 1
add eax, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
cmp eax, 1
mov dword [esp + 0x34], edx
jle 0x415171
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*4 + 8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
lea ecx, [edx + 0xc]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
lea eax, [edx + eax*8 - 8]
mov dword [esp + 0x24], eax
jmp 0x414e6f
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul qword [ebx + 0x4d]
call fcn.00496fa4
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x64]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
sub eax, ecx
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul qword [ebx + 0x55]
call fcn.00496fa4
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x18]
add ecx, eax
lea eax, [edx - 1]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
cmp edx, eax
je 0x414eed
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
add eax, edx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x30]
add eax, ecx
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
mov dword [esp + 0x38], eax
jmp 0x414ef7
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov eax, ecx
mov dword [esp + 0x90], eax
lea eax, [ebx + esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x94], esi
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
add eax, edx
mov dword [esp + 0x70], edi
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ecx, eax
mov dword [esp + 0xb4], ebx
lea eax, [edx + edi]
mov dword [esp + 0x10], eax
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
add eax, esi
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0xa4], ecx
lea eax, [ecx + esi]
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 1
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
mov dword [esp + 0x9c], eax
lea eax, [edx + edi]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
add eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x78], eax
lea eax, [ecx + ebx]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
mov ecx, eax
lea eax, [ebx + edx]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x80]
add eax, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x30]
sar edx, 1
add eax, ecx
mov ecx, edx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, ebx
cdq
sub eax, edx
sub ecx, esi
sar eax, 1
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x34]
sub eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x30]
sub eax, edi
sub esi, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 3
add eax, edx
mov dword [esp + 0xa0], eax
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, edi
mov dword [esp + 0x7c], eax
lea eax, [ecx + ecx*2]
cdq
and edx, 7
mov ecx, dword [esp + 0x34]
add eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 3
add eax, edx
mov dword [esp + 0xa8], eax
lea eax, [esi + esi*2]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, edi
mov dword [esp + 0x84], eax
mov eax, ebx
sub eax, ecx
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
lea eax, [eax + eax*2]
cdq
and edx, 3
add eax, edx
xor edi, edi
sar eax, 2
add eax, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xc]
mov esi, eax
add eax, 0x60
mov dword [esp + 0xc], eax
mov edx, dword [esp + edi + 0x94]
mov eax, dword [esp + edi + 0x70]
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi - 8]
mov edx, dword [esi - 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
sub eax, dword [esp + 0x10]
sub ecx, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
call fcn.00496fa4
fstp st(0)
fstp st(0)
mov dword [esp + 0x10], eax
add edi, 4
fild dword [esp + 0x10]
add esi, 0xc
cmp edi, 0x20
fadd dword [esi - 0x10]
fstp dword [esi - 4]
jl 0x4150d8
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x3c]
inc eax
add edx, 8
mov esi, ebx
mov ebx, dword [ebp + 8]
cmp eax, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
jl 0x414e6b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
lea eax, [ecx + edx*8 + 4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
movsx edx, word [ecx]
inc eax
cmp eax, edx
mov dword [esp + 0x44], eax
jl 0x414dca
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*2]
inc eax
mov dword [esp + 0xc], eax
lea ebx, [edx + ecx*4]
lea eax, [eax + eax*2]
mov dword [ebx + 8], esi
mov dword [edx + eax*4], edi
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
sub edi, ecx
sub esi, eax
mov ecx, esi
mov edx, edi
imul ecx, esi
imul edx, edi
add ecx, edx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsqrt
call fcn.00496fa4
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x2c]
fild dword [esp + 0x10]
mov eax, dword [esp + 0xc]
fadd dword [ebx + 4]
fstp dword [ebx + 0x10]
mov dword [esi], eax
fld dword [ebx + 0x10]
call fcn.00496fa4
mov dword [esi + 4], eax
jmp 0x4153fd
movsx edx, word [edi]
test edx, edx
mov eax, 1
lea ecx, [edi + 0xa]
jle 0x415224
mov esi, edx
movsx edx, word [ecx + 2]
add eax, edx
dec esi
lea ecx, [ecx + edx*8 + 4]
jne 0x415212
cmp eax, 2
jg 0x415229
mov eax, 2
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 8]
push edx
call fcn.004970a0
mov ecx, dword [edi + 6]
mov esi, eax
mov eax, dword [edi + 2]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x64]
add esp, 4
sub eax, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [ebx + 0x4d]
call fcn.00496fa4
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x64]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [ebx + 0x55]
call fcn.00496fa4
mov edx, dword [ebx + 0x18]
mov ecx, dword [esp + 0x48]
add eax, edx
lea edx, [edi + 0xa]
mov dword [esp + 0x3c], eax
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
cmp word [edi], ax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
mov edx, 1
mov dword [esp + 0x44], eax
jle 0x4153cb
mov eax, dword [esp + 0x20]
xor ecx, ecx
movsx eax, word [eax + 2]
test eax, eax
jle 0x4153a4
lea ecx, [edx + edx*2]
mov dword [esp + 0xc], eax
mov dword [esp + 0x40], eax
lea esi, [esi + ecx*4 + 8]
mov ecx, dword [esp + 0x20]
add ecx, 4
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
jmp 0x4152f2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x4c], edx
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [ebx + 0x4d]
call fcn.00496fa4
mov edx, dword [esp + 0x64]
mov edi, eax
mov eax, dword [ebx + 0x14]
add edi, eax
mov eax, dword [esp + 0x4c]
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [ebx + 0x55]
call fcn.00496fa4
mov ecx, dword [ebx + 0x18]
mov edx, dword [esi - 8]
add eax, ecx
mov ecx, dword [esi - 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
sub eax, edx
sub edi, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], edx
mov ecx, edi
mov edx, eax
imul ecx, edi
imul edx, eax
add ecx, edx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsqrt
call fcn.00496fa4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esi, 0xc
add ecx, 8
dec eax
fadd dword [esi - 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
fstp dword [esi - 4]
jne 0x4152ee
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
lea ecx, [eax + ecx*8 + 4]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
inc eax
movsx ecx, word [edi]
cmp eax, ecx
mov dword [esp + 0x44], eax
jl 0x4152ba
cmp edx, 1
jne 0x4153e8
xor eax, eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], 2
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi], edx
lea edx, [edx + edx*2]
fld dword [esi + edx*4 + 4]
call fcn.00496fa4
mov dword [esi + 4], eax
mov esi, dword [esp + 0x2c]
fild dword [ebp + 0xc]
mov eax, dword [esi]
xor ecx, ecx
dec eax
fstp qword [esp + 0x48]
fild dword [ebp + 0x10]
test eax, eax
fsub qword [esp + 0x48]
fild dword [esi + 4]
fadd qword [0x4bd908]
fdivp st(1)
fstp qword [esp + 0x10]
jle 0x41543e
lea eax, [esi + 0x10]
fld dword [eax]
fmul qword [esp + 0x10]
inc ecx
add eax, 0xc
fadd qword [esp + 0x48]
fstp dword [eax - 0xc]
mov edx, dword [esi]
dec edx
cmp ecx, edx
jl 0x415426
fild dword [ebp + 0x10]
lea eax, [ecx + ecx*2]
pop edi
fstp dword [esi + eax*4 + 0x10]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret