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

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, 0x3088
call fcn.00806d88
sub esp, 0x3088
mov eax, dword [esp + 0x3088]
mov ebx, eax
mov ecx, dword [0xb20588]
mov eax, dword [ecx + 0x3544]
cmp eax, 3
je 0x41e57a
cmp eax, 4
je 0x41e606
cmp eax, 5
jne 0x41e695
fld dword [ecx + 0x8644]
fsub dword [ecx + 0x8648]
fmul dword [0x8235f4]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
mov word [esp + 0x12], 0xc7f
fldcw word [esp + 0x12]
mov word [esp + 0x12], ax
fistp dword [esp + 0x58]
fldcw word [esp + 0x12]
mov eax, dword [esp + 0x58]
fld qword [ecx + 0x34f8]
mov dword [esp + 0x60], eax
fild dword [esp + 0x60]
fld st(1)
fsub st(1)
mov eax, dword [ecx + 0x3490]
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
mov dword [esp + 0x5c], ecx
fild dword [esp + 0x5c]
fadd st(1), st(0)
fld dword [0x8235f4]
fadd st(2), st(0)
fnstcw word [esp + 0x10]
movzx ecx, word [esp + 0x10]
mov word [esp + 0x10], 0xc7f
fldcw word [esp + 0x10]
mov word [esp + 0x10], cx
fxch st(2)
fistp dword [esp + 0x68]
fldcw word [esp + 0x10]
mov edx, dword [esp + 0x68]
fxch st(3)
faddp st(2)
fxch st(1)
faddp st(2)
faddp st(1)
fnstcw word [esp + 0xe]
movzx ecx, word [esp + 0xe]
mov word [esp + 0xe], 0xc7f
fldcw word [esp + 0xe]
mov word [esp + 0xe], cx
fistp dword [esp + 0x64]
fldcw word [esp + 0xe]
mov ecx, dword [esp + 0x64]
jmp 0x41e69f
fld qword [ecx + 0x34f8]
fld st(0)
fsub dword [ecx + 0x8644]
mov eax, dword [ecx + 0x3490]
mov edx, eax
shr edx, 0x1f
add edx, eax
sar edx, 1
mov dword [esp + 0x6c], edx
fild dword [esp + 0x6c]
fadd st(1), st(0)
fld dword [0x8235f4]
fadd st(2), st(0)
fnstcw word [esp + 0x16]
movzx edx, word [esp + 0x16]
mov word [esp + 0x16], 0xc7f
fldcw word [esp + 0x16]
mov word [esp + 0x16], dx
fxch st(2)
fistp dword [esp + 0x74]
fldcw word [esp + 0x16]
mov edx, dword [esp + 0x74]
fxch st(2)
fsub dword [ecx + 0x8648]
faddp st(2)
faddp st(1)
fnstcw word [esp + 0x14]
movzx ecx, word [esp + 0x14]
mov word [esp + 0x14], 0xc7f
fldcw word [esp + 0x14]
mov word [esp + 0x14], cx
fistp dword [esp + 0x70]
fldcw word [esp + 0x14]
mov ecx, dword [esp + 0x70]
jmp 0x41e69f
fld qword [ecx + 0x34f8]
fld st(0)
fadd dword [ecx + 0x8648]
mov eax, dword [ecx + 0x3490]
mov edx, eax
shr edx, 0x1f
add edx, eax
sar edx, 1
mov dword [esp + 0x78], edx
fild dword [esp + 0x78]
fadd st(1), st(0)
fld dword [0x8235f4]
fadd st(2), st(0)
fnstcw word [esp + 0x1a]
movzx edx, word [esp + 0x1a]
mov word [esp + 0x1a], 0xc7f
fldcw word [esp + 0x1a]
mov word [esp + 0x1a], dx
fxch st(2)
fistp dword [esp + 0x80]
fldcw word [esp + 0x1a]
mov edx, dword [esp + 0x80]
fxch st(2)
fadd dword [ecx + 0x8644]
faddp st(2)
faddp st(1)
fnstcw word [esp + 0x18]
movzx ecx, word [esp + 0x18]
mov word [esp + 0x18], 0xc7f
fldcw word [esp + 0x18]
mov word [esp + 0x18], cx
fistp dword [esp + 0x7c]
fldcw word [esp + 0x18]
mov ecx, dword [esp + 0x7c]
jmp 0x41e69f
mov eax, dword [ecx + 0x3490]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x44], edx
fld dword [0x8235f8]
fld st(0)
fimul dword [esp + 0x44]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdiv st(1), st(0)
fld dword [0x8235f4]
fadd st(2), st(0)
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
mov word [esp + 0xc], 0xc7f
fldcw word [esp + 0xc]
mov word [esp + 0xc], ax
fxch st(2)
fistp dword [esp + 0x50]
fldcw word [esp + 0xc]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x4c], ecx
fxch st(2)
fimul dword [esp + 0x4c]
fdivrp st(2)
fst qword [esp + 0x84]
faddp st(1)
fnstcw word [esp + 0xa]
movzx eax, word [esp + 0xa]
mov word [esp + 0xa], 0xc7f
fldcw word [esp + 0xa]
mov word [esp + 0xa], ax
fistp dword [esp + 0x54]
fldcw word [esp + 0xa]
mov eax, dword [esp + 0x54]
cmp edx, 0x200
mov ebp, 0xfffffe00
mov esi, 0xfffffe00
jle 0x41e755
add esi, edx
js 0x41e75e
cmp eax, 0x200
jle 0x41e767
add ebp, eax
js 0x41e770
cmp esi, dword [0x823614]
jne 0x41e77a
cmp ebp, dword [0x823618]
je 0x41e786
jmp 0x41e77a
mov esi, pe_nt_image_headers32
add esi, edx
jns 0x41e738
xor esi, esi
cmp eax, 0x200
jg 0x41e73f
mov ebp, pe_nt_image_headers32
add ebp, eax
jns 0x41e743
xor ebp, ebp
cmp esi, dword [0x823614]
je 0x41e74b
mov dword [0x823614], esi
mov dword [0x823618], ebp
mov al, byte [0xb1cb2c]
test al, al
jne 0x41e7e1
mov byte [0xb1cb2c], 1
mov byte [0xb1cb2d], 0
mov dword [0xb1cb24], 0
mov dword [0xb1cb20], 0
mov dword [0xb1cb1c], 0
mov dword [0xb1cb18], 0
mov byte [0xb1cb30], 1
sub esp, 0xc
push 0x400
call fcn.00429f98
add esp, 0x10
mov dword [0xb1eb34], eax
mov eax, ebp
sub eax, esi
mov edi, ebp
sub edi, esi
jns 0x41e7f2
add eax, 0x400
mov edi, eax
sub esp, 4
push pe_nt_image_headers32
push 0xb1cb34
push 0xb1db34
call dword [0xb206a8]
add esp, 4
sub esp, 4
push pe_nt_image_headers32
push 0xb1db34
mov dword [esp + 0x2c], ebx
push ebx
call dword [0xb206a8]
add esp, 4
mov eax, dword [0xb1eb34]
lea ebx, [esp + 0x8c]
push dword [eax + 4]
push dword [eax]
push ebx
push 0xb1cb34
call dword [0xb206b8]
movzx eax, byte [0xb1cb30]
shl eax, 0xa
sub esp, 4
lea ecx, [esp + 0x2090]
push eax
push ecx
push ebx
call dword [0xb2068c]
add esp, 4
cmp edi, 4
fldz
jl 0x41ea8f
fstp st(0)
mov ecx, dword [0xb20588]
cmp byte [ecx + 0x8640], 0
fldz
je 0x41ea8f
fstp st(0)
mov eax, edi
mov dword [esp + 0x1c], eax
shr eax, 2
lea edi, [eax + esi]
fldz
mov edx, esi
nop dword [eax]
fadd dword [esp + edx*4 + 0x208c]
inc edx
cmp edx, edi
jl 0x41e8a0
mov edx, dword [esp + 0x1c]
lea ebx, [edx + edx*2]
mov edx, ebx
sar edx, 0x1f
shr edx, 0x1e
add edx, ebx
sar edx, 2
add esi, edx
cmp esi, ebp
jge 0x41e8dc
mov ebx, esi
nop dword [eax + eax]
fadd dword [esp + ebx*4 + 0x208c]
inc ebx
cmp ebx, ebp
jl 0x41e8d0
mov dword [0xb1cb1c], 0
fldz
cmp edi, esi
lea ebx, [esp + 0x8c]
jge 0x41e91b
fstp st(0)
lea edi, [esp + edi*4 + 0x208c]
sub edx, eax
fldz
fld dword [edi]
fucom st(1)
fnstsw ax
sahf
jbe 0x41e913
fstp st(1)
fst dword [0xb1cb1c]
fldz
fstp st(0)
add edi, 4
dec edx
jne 0x41e900
mov eax, dword [esp + 0x1c]
mov edx, eax
shr eax, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x40], eax
fxch st(1)
fidiv dword [esp + 0x40]
fld qword [esp + 0x84]
fld st(0)
fmul dword [0xb1cb18]
fxch st(2)
fmulp st(1)
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fst dword [0xb1cb18]
fld dword [0xb1cb20]
fadd st(0), st(0)
faddp st(2)
fxch st(1)
fdiv dword [0x8235fc]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fst dword [0xb1cb1c]
fst dword [0xb1cb20]
fadd st(1), st(0)
fxch st(1)
fmul dword [0x8235f4]
fld dword [0xb1cb24]
fmul dword [0x823600]
faddp st(1)
fdiv dword [0x823604]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fst dword [0xb1cb24]
fxch st(1)
fucompp
fnstsw ax
sahf
jbe 0x41e9bd
mov al, 1
cmp byte [0xb1cb2d], 0
jne 0x41e9c6
jmp 0x41e9bf
xor eax, eax
mov byte [0xb1cb2d], al
xor eax, eax
mov byte [ecx + 0x8641], al
xor edx, edx
fld qword [0x82360c]
nop word cs:[eax + eax]
fld st(0)
fmul dword [esp + edx*8 + 0x8c]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + edx*8 + 0x8c]
fld st(0)
fmul dword [esp + edx*8 + 0x90]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp dword [esp + edx*8 + 0x90]
inc edx
cmp edx, 0x400
jne 0x41e9e0
fstp st(0)
mov edx, dword [ecx + 0x3490]
fld qword [ecx + 0x34f8]
mov dword [0xb1cb28], 0x3f800000
test al, al
je 0x41ea8f
mov eax, edx
sar eax, 0x1f
shr eax, 0x16
add eax, edx
sar eax, 0xa
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fdivp st(1)
fadd dword [0x8235f4]
fnstcw word [esp + 8]
movzx eax, word [esp + 8]
mov word [esp + 8], 0xc7f
fldcw word [esp + 8]
mov word [esp + 8], ax
fistp dword [esp + 0x28]
fldcw word [esp + 8]
mov eax, dword [esp + 0x28]
mov dword [esp + eax*8 + 0x8c], 0x3f800000
mov dword [esp + eax*8 + 0x90], 0x3f800000
fldz
fstp st(0)
mov eax, dword [0xb1eb34]
sub esp, 4
push dword [eax + 4]
push dword [eax]
push ebx
call dword [0xb206d0]
add esp, 4
lea eax, [esp + 0x88c]
sub esp, 4
push pe_nt_image_headers32
push dword [esp + 0x28]
push eax
call dword [0xb206a8]
add esp, 0x3090
pop esi
pop edi
pop ebx
pop ebp
ret