Function at 0x409cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, eax
sub esp, 0x9c
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0x10]
mov edi, eax
mov eax, ecx
add eax, edx
mov dword [esp + 0x10], edi
mov ebp, eax
mov dword [esp + 0x38], eax
and eax, dword [esp + 0xb4]
cmp ebp, ebx
mov dword [esp + 0x48], eax
mov eax, ebp
cmova eax, ebx
mov dword [esp + 0x4c], eax
mov eax, ebp
mov ebp, ecx
add eax, edi
mov edi, esi
cmp eax, ebx
cmova eax, ebx
sub edi, ecx
mov ecx, 0x96
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0xd4]
cmp dword [eax + 4], 0xb
mov eax, 0x145
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0xd0]
cmovl eax, ecx
mov dword [esp + 8], edi
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x84], eax
setge al
mov ecx, ebx
movzx eax, al
lea eax, [eax*4 + 1]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [edi + 0xb08]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xc0]
mov dword [esp], edx
mov edx, ebp
call fcn.00409a00
mov eax, dword [esp + 0xd0]
mov ebx, dword [esp + 0xcc]
mov eax, dword [eax + 0xe0]
mov ebx, dword [ebx + 0xb08]
mov dword [esp + 0x74], eax
neg eax
lea ecx, [ebx + ebp*4]
and eax, 7
mov dword [esp + 0x78], ebx
imul eax, eax, 0x1c
add eax, dword [esp + 0xd0]
fld dword [ecx]
mov dword [esp + 0x80], ecx
mov ecx, 0xa
mov edx, dword [eax]
fsub dword [ebx + edx*4]
mov ebx, 4
mov edx, 2
fld dword [eax + 0x18]
mov eax, dword [esp + 0xcc]
fadd dword [eax + 0xb0c]
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0xd4]
faddp st(1)
fld1
jmp 0x409df4
add eax, 0x10
lea edi, [ebp + edx]
cmp esi, edi
jb 0x409e17
fld dword [eax + 0x2c]
fxch st(2)
fucomi st(2)
fstp st(2)
jb 0x409e1d
add edx, 1
cmp edx, ecx
jne 0x409df1
lea ecx, [edx + ebx]
fadd st(1), st(0)
add ebx, ebx
jmp 0x409df1
fstp st(0)
fstp st(0)
jmp 0x409e21
fstp st(0)
fstp st(0)
mov edi, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x90], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x20], 0
lea eax, [eax + edi*8]
lea edi, [edx - 1]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
add esi, edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], esi
nop
lea esi, [esi]
cmp eax, 8
mov edx, 8
cmovbe edx, eax
cmp edx, dword [esp + 0x50]
jbe 0x40a5aa
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x74]
mov eax, dword [esp + 0x54]
and esi, 7
imul ebx, esi, 0x1c
add ebx, dword [esp + 0xd0]
mov dword [esp + 0x10], esi
sub eax, dword [ebx]
cmp eax, 5
mov dword [esp + 0x3c], eax
ja 0x40a040
mov word [esp + 0x70], ax
mov eax, dword [eax*4 + 0x469c80]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
fild qword [esp + 0x18]
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0xd0]
fld dword [eax]
mov eax, dword [esp + 0x78]
fsub dword [eax]
fxch st(1)
imul eax, dword [esp + 0x10], 0x1c
fadd dword [edi + eax + 0x14]
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x40], eax
mov ebp, eax
faddp st(1)
jbe 0x40a003
mov esi, dword [ebx + 4]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x8c]
mov ebx, dword [esp + 0xb0]
sub eax, esi
cmp dword [esp + 0xb4], edi
movzx ebx, byte [ebx + edi]
jb 0x40a003
movzx edi, word [esp + 0x70]
mov ecx, dword [esp + 0x10]
lea edx, [edi*8]
and edx, 0x38
mov word [esp + 0x28], dx
or edx, 7
mov word [esp + 0x64], dx
mov edx, edi
shr dx, 3
movzx edx, dx
lea edi, [edx + edx*2]
lea edx, [ecx*8]
sub edx, ecx
mov dword [esp + 0x44], edi
mov edi, 1
mov dword [esp + 0x18], edx
nop
lea esi, [esi]
cmp dword [esp + 0x14], esi
setae cl
cmp dword [esp + 0x4c], esi
setae dl
test cl, dl
je 0x409fb0
cmp dword [esp + 0x38], eax
jbe 0x409fb0
and eax, dword [esp + 0xb4]
lea edx, [eax + ebp]
cmp dword [esp + 0xb4], edx
jb 0x409fb0
mov ecx, dword [esp + 0xb0]
cmp byte [ecx + edx], bl
je 0x40a070
jmp 0x409fb0
fstp st(0)
nop
cmp edi, 0xf
ja 0x40a003
cmp ebp, dword [esp + 0x40]
jae 0x40a003
mov eax, dword [esp + 0x18]
add eax, dword [edi*4 + 0x469be0]
mov ebx, dword [esp + 0xd0]
mov edx, dword [edi*4 + 0x469ba0]
add edi, 1
mov esi, dword [ebx + eax*4 + 4]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
add esi, edx
lea edx, [ebp + ebx]
mov ebx, dword [esp + 0xb0]
sub eax, esi
cmp dword [esp + 0xb4], edx
movzx ebx, byte [ebx + edx]
jae 0x409f70
cmp dword [esp + 0x50], 1
jbe 0x40a2ef
fstp st(0)
jmp 0x40a014
fstp st(0)
add dword [esp + 0x50], 1
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x7c], eax
je 0x40a5aa
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0xe0]
jmp 0x409e70
mov eax, dword [esp + 0x3c]
cmp eax, 0x81
ja 0x40a5c9
sub eax, 2
bsr ecx, eax
sub ecx, 1
lea edx, [ecx + ecx]
shr eax, cl
lea eax, [edx + eax + 2]
mov word [esp + 0x70], ax
movzx eax, ax
jmp 0x409eb6
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
add eax, ecx
add edx, ecx
add ebx, edx
lea ecx, [ebx - 4]
mov dword [esp + 0x10], ebx
cmp edx, ecx
ja 0x40a633
mov ebx, dword [eax]
cmp dword [edx], ebx
mov ebx, 0
jne 0x40a0b5
mov dword [esp + 0x30], esi
jmp 0x40a0a7
mov esi, dword [eax + ebx]
cmp dword [edx], esi
jne 0x40a0b1
add edx, 4
add ebx, 4
cmp edx, ecx
jbe 0x40a0a0
mov esi, dword [esp + 0x30]
cmp edx, dword [esp + 0x10]
jae 0x40a0e5
movzx ecx, byte [eax + ebx]
cmp byte [edx], cl
jne 0x40a0e5
mov ecx, ebx
sub ecx, edx
add ecx, dword [esp + 0x10]
sub edx, ebx
mov dword [esp + 0x10], ecx
jmp 0x40a0dc
movzx ecx, byte [edx + ebx]
cmp byte [eax + ebx], cl
jne 0x40a0e5
add ebx, 1
cmp ebx, dword [esp + 0x10]
jne 0x40a0d3
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x30], ebx
mov eax, dword [eax + 0xb00]
fld dword [eax + edi*4 - 4]
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x30]
fadd st(1)
ja 0x409fad
mov edx, edi
add ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0xd4]
shl edx, 0x1b
or edx, dword [esp + 0x3c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x34], edi
mov esi, dword [esp + 0x20]
shl ebp, 4
add ebx, ebp
mov dword [esp + 0x58], edx
mov ebp, eax
jmp 0x40a204
lea eax, [ebp - 6]
bsr ecx, eax
sub ecx, 1
lea edx, [ecx + ecx]
shr eax, cl
lea eax, [edx + eax + 4]
mov edx, eax
movzx edi, ax
and edx, 7
or dx, word [esp + 0x28]
cmp dword [esp + 0x34], 1
sete byte [esp + 0x20]
cmp word [esp + 0x70], 7
mov word [esp + 0x10], dx
movzx edx, byte [esp + 0x20]
setbe cl
test dl, cl
je 0x40a270
cmp ax, 0xf
ja 0x40a270
cmp ax, 7
ja 0x40a265
mov eax, dword [edi*4 + 0x469c20]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
fild qword [esp + 0x20]
fld st(2)
faddp st(1)
movzx edx, word [esp + 0x10]
mov eax, dword [esp + 0xcc]
fadd dword [eax + edx*4]
fld dword [ebx + 0x1c]
fucompi st(1)
jbe 0x40a1f0
mov eax, ebp
fstp dword [ebx + 0x1c]
or eax, 0x12000000
cmp esi, ebp
mov dword [ebx + 0x10], eax
cmovb esi, ebp
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x18], eax
jmp 0x40a1f2
fstp st(0)
lea eax, [ebp + 1]
add ebx, 0x10
cmp eax, dword [esp + 0x30]
ja 0x40a2e0
mov ebp, eax
cmp ebp, 9
lea eax, [ebp - 2]
jbe 0x40a152
cmp ebp, 0x85
jbe 0x40a140
cmp ebp, 0x845
ja 0x40a2c0
lea eax, [ebp - 0x46]
bsr eax, eax
add eax, 0xc
mov edx, eax
movzx edi, ax
and edx, 7
or dx, word [esp + 0x28]
cmp word [esp + 0x70], 7
setbe byte [esp + 0x20]
cmp dword [esp + 0x34], 1
mov word [esp + 0x10], dx
movzx edx, byte [esp + 0x20]
sete cl
test dl, cl
je 0x40a270
cmp ax, 0xf
ja 0x40a270
or word [esp + 0x10], 0x40
jmp 0x40a198
mov edx, dword [edi*4 + 0x469c20]
xor ecx, ecx
shr ax, 3
mov dword [esp + 0x24], ecx
movzx eax, ax
mov dword [esp + 0x20], edx
fild qword [esp + 0x20]
add eax, dword [esp + 0x44]
mov edi, 0x520d40
fld st(2)
lea ecx, [eax + eax]
shl eax, 6
shr edi, cl
mov ecx, edi
and ecx, 0xc0
lea eax, [ecx + eax + 0x40]
or word [esp + 0x10], ax
movzx eax, word [esp + 0x10]
cmp ax, 0x7f
fcmovnbe st(0), st(2)
jmp 0x40a1af
movzx eax, word [esp + 0x64]
fld dword [0x46a0ec]
mov word [esp + 0x10], ax
mov eax, 2
jmp 0x40a28c
fstp st(0)
mov edi, dword [esp + 0x34]
mov dword [esp + 0x20], esi
jmp 0x409fb0
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x40a012
mov esi, dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
mov ebp, dword [esp + 0x90]
mov ebx, dword [esi + 0x38]
mov eax, dword [eax + 0x34]
mov esi, dword [esp + 0xcc]
lea edi, [ebx + 0x10]
lea ecx, [eax + 2]
mov dword [esp + 0x6c], eax
mov esi, dword [esi + 0xb00]
mov dword [esp + 0x5c], edi
mov edi, eax
mov eax, 1
mov edx, eax
shl edx, cl
mov dword [esp + 0x58], esi
mov ecx, edi
sub edx, ebx
shl eax, cl
lea esi, [edx - 0x10]
movzx edx, word [esp + 0x70]
sub eax, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], esi
mov eax, edx
shl edx, 3
shr ax, 3
and edx, 0x38
movzx eax, ax
mov word [esp + 0x70], dx
lea eax, [eax + eax*2]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x44], eax
lea eax, [ebx + 0x10]
mov word [esp + 0x72], ax
lea esi, [esi]
mov eax, dword [esp + 0x44]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea ebx, [esi + 0xf]
cmp ebx, dword [esp + 0x5c]
mov dword [esp + 0x10], esi
jb 0x40a3dc
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
lea edx, [eax + ebx]
bsr ecx, edx
mov ebx, edx
and edx, dword [esp + 0x68]
sub ecx, 1
add dx, word [esp + 0x72]
shr ebx, cl
mov eax, ecx
mov ecx, ebx
sub eax, esi
and ecx, 1
lea ebx, [ecx + eax*2 - 2]
mov ecx, esi
shl eax, 0xa
shl ebx, cl
add ebx, edx
or ebx, eax
mov eax, ebx
shr bx, 0xa
mov esi, dword [esp + 0x58]
mov word [esp + 0x18], bx
and eax, 0x3ff
fild word [esp + 0x18]
fadd st(1)
fadd dword [esi + eax*4]
mov eax, edi
shr eax, 5
cmp eax, ebp
mov dword [esp + 0x18], eax
jbe 0x40a575
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x14], ebx
jb 0x40a5c0
mov esi, dword [esp + 0x84]
cmp eax, esi
ja 0x40a5c0
mov eax, dword [esp + 0x54]
and edi, 0x1f
mov dword [esp + 0x34], edi
lea esi, [eax + ebp]
shl esi, 4
add esi, dword [esp + 0xd4]
jmp 0x40a51e
mov eax, dword [esp + 0x34]
test eax, eax
mov edi, eax
jne 0x40a540
mov edi, dword [esp + 0x18]
cmp edi, 9
jbe 0x40a537
cmp edi, 0x85
jbe 0x40a547
cmp edi, 0x845
ja 0x40a560
lea ecx, [edi - 0x46]
bsr ecx, ecx
add ecx, 0xc
mov edx, ecx
mov eax, ecx
movzx ecx, cx
mov ecx, dword [ecx*4 + 0x469c20]
xor ebx, ebx
shr ax, 3
mov dword [esp + 0x2c], ebx
and edx, 7
movzx eax, ax
mov dword [esp + 0x28], ecx
fild qword [esp + 0x28]
add eax, dword [esp + 0x30]
mov ebx, 0x520d40
or dx, word [esp + 0x70]
fadd st(1)
lea ecx, [eax + eax]
shl eax, 6
shr ebx, cl
and ebx, 0xc0
lea eax, [ebx + eax + 0x40]
or edx, eax
mov eax, dword [esp + 0xcc]
movzx edx, dx
fadd dword [eax + edx*4]
fld dword [esi + 0xc]
fucompi st(1)
jbe 0x40a510
lea eax, [ebp + 9]
fstp dword [esi + 0xc]
sub eax, edi
shl eax, 0x19
or eax, ebp
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
cmp eax, ebp
cmovb eax, ebp
mov dword [esp + 0x20], eax
jmp 0x40a512
fstp st(0)
add ebp, 1
add esi, 0x10
cmp ebp, dword [esp + 0x18]
ja 0x40a580
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x14], edi
jb 0x40a444
mov edi, ebp
cmp edi, 9
ja 0x40a45f
lea ecx, [edi - 2]
jmp 0x40a480
cmp dword [esp + 0x34], 9
jbe 0x40a537
lea eax, [edi - 6]
bsr ecx, eax
sub ecx, 1
lea edx, [ecx + ecx]
shr eax, cl
lea ecx, [edx + eax + 4]
jmp 0x40a480
fld dword [0x46a0ec]
mov eax, 2
mov edx, 7
jmp 0x40a4a6
jae 0x40a427
fstp st(0)
jmp 0x40a582
fstp st(0)
add dword [esp + 0x44], 8
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x60], eax
jne 0x40a390
fstp st(0)
add dword [esp + 0x50], 1
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x7c], eax
jne 0x40a027
mov eax, dword [esp + 0x20]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0x18]
jmp 0x40a427
mov eax, dword [esp + 0x3c]
cmp eax, 0x841
ja 0x40a5e2
lea edx, [eax - 0x42]
bsr edx, edx
lea eax, [edx + 0xa]
jmp 0x40a061
mov eax, dword [esp + 0x3c]
cmp eax, 0x1841
jbe 0x40a609
cmp eax, 0x5841
ja 0x40a61e
mov esi, 0x16
fld dword [0x46a0e8]
mov word [esp + 0x70], si
jmp 0x409ecb
mov ecx, 0x15
fld dword [0x46a0e4]
mov word [esp + 0x70], cx
jmp 0x409ecb
mov edx, 0x17
fld dword [0x46a0ec]
mov word [esp + 0x70], dx
jmp 0x409ecb
xor ebx, ebx
jmp 0x40a0b5