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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0x34]
push esi
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], ecx
mov byte [eax], 0
call fcn.1002d0b3
mov ecx, eax
mov esi, dword [eax]
call dword [esi + 8]
cmp eax, 2
jne 0x10040d44
call fcn.10073a44
mov byte [esp + 0x3c], 1
cmp byte [eax + 0x21], 0
je 0x10040d44
mov esi, dword [esp + 0x48]
mov ecx, esi
call fcn.1002ce02
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
call fcn.100405ab
mov ecx, dword [esi + 0xc]
xor eax, eax
add ecx, 4
mov dword [esp + 0x40], eax
push 0x103e62a8
call fcn.1002c39f
test al, al
jne 0x1009f211
mov eax, dword [esp + 0x40]
mov ecx, eax
mov edx, eax
mov edi, dword [ebp + 0x38]
push edi
push dword [ebp + 0x30]
lea edi, [esp + 0x50]
push edi
lea edi, [esp + 0x64]
push edi
lea edi, [esp + 0x40]
push edi
lea edi, [esp + 0x3c]
push edi
push dword [ebp + 0x34]
push edx
push ecx
push eax
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
lea eax, [esi + 0x68]
push dword [ebp + 0x1c]
mov ecx, dword [esp + 0x50]
push eax
lea eax, [esp + 0x9c]
push eax
push dword [ebp + 0x18]
push dword [esp + 0x78]
push dword [ebp + 0x2c]
push dword [ebp + 0xc]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x10]
call fcn.10040745
mov edi, dword [ebp + 0x38]
test al, al
je 0x10040d3c
movsd xmm0, qword [0x103827f0]
mov eax, dword [esi + 0xc4]
movsd qword [esp + 0x20], xmm0
cmp eax, 0xffffffff
je 0x1009f2b7
test eax, eax
jne 0x1009f283
movsd xmm0, qword [0x101b9300]
movsd qword [esp + 0x20], xmm0
mov ecx, esi
call fcn.10040aa9
movzx eax, al
cmp eax, 0xb
ja case.0x10040c4f.0
movzx eax, byte [eax + 0x10040d5a]
jmp dword [eax*4 + 0x10040d4e]
push 0
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1282]
movsd xmm1, qword [0x103827f0]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x5c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
push edx
mulsd xmm0, qword [0x10379880]
maxsd xmm1, xmm0
mulsd xmm1, qword [0x101b92f8]
mulsd xmm1, qword [esp + 0x28]
movsd qword [esp + 0x10], xmm1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x88]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0xd0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
lea edi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x38]
mov esi, dword [ebp + 0x20]
test esi, esi
jne 0x1009f31b
movsd xmm2, qword [esp + 0x28]
movsd xmm3, qword [esp + 0x10]
comisd xmm2, xmm3
movsd xmm1, qword [esp + 0x30]
ja 0x1009f38a
comisd xmm1, xmmword [esp + 0x18]
ja 0x1009f38a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test edi, edi
je 0x10040d22
mov dword [edi], esi
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], eax
push eax
push ecx
push edx
push esi
lea ecx, [esp + 0x68]
call fcn.10040d66
mov edx, dword [ebp + 0x30]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx], ecx
mov dword [edx + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x34
mov byte [esp + 0x3c], 0
jmp 0x10040b69
mov esi, dword [esi + 0xc]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0xfc]
call eax
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esi]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 0x104]
call eax
mov esi, dword [esp + 0x48]
lea edx, [esp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
jmp 0x10040ba6
cmp eax, 1
je 0x1009f2ac
cmp eax, 2
je 0x1009f29f
cmp eax, 3
jne 0x1009f2b7
movsd xmm0, qword [0x101b8308]
jmp 0x10040c33
movsd xmm0, qword [0x103c11f8]
jmp 0x10040c33
movsd qword [esp + 0x20], xmm0
jmp 0x10040c39
push 0x282196
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1360]
jmp 0x10040c39
movsd xmm0, qword [esp + 0x20]
mulsd xmm0, qword [0x101b92f8]
movsd qword [esp + 8], xmm0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x10040cd0
movsd xmm0, qword [0x101b92f8]
movsd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x10040cd0
mov eax, dword [esi]
xorps xmm1, xmm1
mov ecx, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
movsd xmm0, qword [esp + 8]
comisd xmm0, xmm1
jbe 0x1009f34f
mov edx, esi
lea ecx, [esp + 0x10]
call fcn.1002791f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
lea edx, [esi + 8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
movsd xmm0, qword [esp + 8]
comisd xmm0, xmm1
jbe 0x10040cdb
lea ecx, [esp + 0x18]
call fcn.1002791f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x10040cdb
movsd xmm0, qword [esp + 0x18]
divsd xmm3, xmm2
mov eax, dword [ebp + 0x34]
mov byte [eax], 1
divsd xmm0, xmm1
comisd xmm3, xmm0
ja 0x1009f3a7
movaps xmm0, xmm3
mulsd xmm2, xmm0
mulsd xmm1, xmm0
movsd qword [esp + 0x28], xmm2
movsd qword [esp + 0x30], xmm1
jmp 0x10040d03