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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov esi, esp
mov eax, dword [0x42c0c0]
xor eax, ebp
mov dword [esi + 0x128], eax
cmp dword [0x42c2f8], 0xa
jl 0x404e32
mov eax, dword [0x42c2fc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x404e32
nop word [eax + eax]
jmp 0x404e30
push eax
sub esp, 0xc
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
push eax
sub esp, 0xc
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x10], ecx
mov esp, ecx
push eax
sub esp, 0xc
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 8], ecx
mov esp, ecx
push eax
sub esp, 0xc
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
push eax
sub esp, 0x1c
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x28], ecx
mov esp, ecx
mov ecx, 0x9dbdc44
mov edx, 0x88c0f376
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], ecx
cmp dword [0x42c300], 0xa
jl 0x404ea2
mov ecx, dword [0x42c304]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x404ea2
nop dword [eax]
jmp 0x404ea0
mov ecx, 0x9adf71ff
mov edx, 0x7e1a201e
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], ecx
mov ecx, 0x39f5ec69
mov ebx, 0xbaf7cb47
mov dword [esi + 4], ecx
mov ecx, 0x7e1a201e
mov edx, 0x9adf42c6
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], ecx
lea edx, [esi + 0x100]
xor ecx, ecx
mov dword [esi + 0x80], edx
movss xmm1, dword [ebp + 8]
movaps xmm0, xmmword [0x40d520]
andps xmm0, xmm1
movaps xmmword [esi + 0xf0], xmm0
cvtss2sd xmm0, xmm0
movsd xmm1, qword [0x40d530]
subsd xmm1, xmm0
mov ecx, 0xec5c259
mov edx, 0x8bc1f973
mov dword [esi + 0x3c], edx
mov edx, dword [esi + 4]
mov dword [esi + 0x40], ecx
movsd qword [esi + 0x30], xmm1
xorps xmm0, xmm0
sqrtsd xmm0, xmm1
movsd qword [esi + 0xb8], xmm0
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [esi + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax + 0xc], ecx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x100], edx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
movaps xmm0, xmmword [eax]
mov ecx, dword [esi + 0x80]
xorps xmm0, xmmword [ecx]
movaps xmmword [eax], xmm0
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
add esp, 8
fstp qword [esi + 0xe8]
movsd xmm0, qword [esi + 0xe8]
cmp dword [0x42c308], 0xa
jl 0x404fa8
mov eax, dword [0x42c30c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x405760
movsd qword [esi + 0x78], xmm0
mov dword [esi + 0x24], edi
mov edx, 0x9adf42f6
mov edi, 0x7e1a201e
lea eax, [esi + 0x100]
xor ecx, ecx
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x10]
mov dword [ebx], ecx
mov ecx, dword [esi + 0x3c]
mov dword [ebx + 4], ecx
mov dword [esi + 0x9c], edi
mov dword [ebx + 0xc], edi
mov dword [esi + 0x2c], edx
mov dword [ebx + 8], edx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x104], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x100], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
movaps xmm0, xmmword [ebx]
xorps xmm0, xmmword [eax]
movaps xmmword [ebx], xmm0
push 0
push ebx
mov ebx, dword [esi + 8]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
add esp, 8
fstp qword [esi + 0xe0]
movsd xmm0, qword [esi + 0xe0]
movsd qword [esi + 0x70], xmm0
mov eax, dword [0x42c310]
mov edx, dword [0x42c314]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete ah
cmp edx, 0xa
setl al
or al, ah
mov byte [esi + 0x10], al
cmp al, 1
je 0x405067
mov edi, 0x8c7c259
mov eax, edx
mov edx, 0x8ec6fa75
mov dword [ebx + 4], edx
mov edx, eax
mov dword [ebx], edi
cmp edx, 0xa
mov dword [esi + 8], ebx
jl 0x405080
and ecx, 1
jne 0x4054d0
nop dword [eax + eax]
mov ecx, 0x8c7c259
mov edx, 0x8ec6fa75
mov eax, dword [esi + 8]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov edi, 0x9adf42f2
mov ebx, 0x7e1a201e
mov dword [eax + 0xc], ebx
mov dword [eax + 8], edi
cmp byte [esi + 0x10], 0
je 0x4054d0
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], edi
mov dword [esi + 0x4c], edx
mov dword [esi + 0xa0], ecx
lea eax, [esi + 0x100]
xor ecx, ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x100], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x104], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 8]
movaps xmm0, xmmword [ecx]
xorps xmm0, xmmword [eax]
movaps xmmword [ecx], xmm0
push 0
push ecx
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
call ebx
add esp, 8
fstp qword [esi + 0xd8]
movsd xmm0, qword [esi + 0xd8]
mov edi, 0xec0c258
mov eax, 0x82c5fc77
mov dword [esi + 0x64], eax
cmp dword [0x42c318], 0xa
jl 0x40513f
mov eax, dword [0x42c31c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x405770
movsd qword [esi + 0x68], xmm0
mov ebx, 0x7e1a201e
mov edx, 0x9adf42fe
lea eax, [esi + 0x100]
xor ecx, ecx
mov ecx, edi
mov dword [esi + 0x90], edi
mov edi, dword [esi + 0x24]
mov dword [edi], ecx
mov ecx, dword [esi + 0x64]
mov dword [edi + 4], ecx
mov dword [esi + 0x8c], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x88], edx
mov dword [edi + 8], edx
mov edx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
mov ebx, dword [esi + 0x14]
mov dword [esi + 0x104], ebx
mov ecx, dword [esi + 4]
mov dword [esi + 0x100], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
movaps xmm0, xmmword [edi]
xorps xmm0, xmmword [eax]
movaps xmmword [edi], xmm0
push 0
push edi
call edx
add esp, 8
fstp qword [esi + 0xd0]
movsd xmm0, qword [esi + 0xd0]
movsd qword [esi + 0xb0], xmm0
movsd xmm0, qword [esi + 0x30]
ucomisd xmm0, qword [0x40d540]
movsd xmm0, qword [esi + 0xb8]
jae 0x405206
sub esp, 8
movsd xmm0, qword [esi + 0x30]
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
add esp, 8
fstp qword [esi + 0xc8]
movsd xmm0, qword [esi + 0xc8]
cmp dword [0x42c320], 0xa
jl 0x405223
mov eax, dword [0x42c324]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x405780
movsd qword [esi + 0xa8], xmm0
mov eax, 0xdc4c25a
mov ecx, 0x88cefe76
mov dword [esi + 0x60], ecx
mov dword [esi + 0x24], eax
mov eax, 0xafec77f0
mov ecx, 0x472d1926
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], eax
mov edi, 0x310f490b
mov eax, 0xa0c9bbe9
mov dword [esi + 0x10], eax
mov eax, 0xc8478848
mov ebx, 0x88939068
mov dword [esi + 8], eax
lea eax, [esi + 0x100]
xor ecx, ecx
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x60]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x24]
mov dword [edx], ecx
mov ecx, dword [esi + 0x58]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 0x5c]
mov dword [edx + 8], ecx
mov ecx, dword [esi + 0x10]
mov dword [edx + 0x14], ecx
mov dword [edx + 0x10], edi
mov dword [edx + 0x1c], ebx
mov ecx, dword [esi + 8]
mov dword [edx + 0x18], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x104], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x100], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x114], ecx
mov dword [esi + 0x110], edi
mov dword [esi + 0x84], ebx
mov dword [esi + 0x11c], ebx
mov ecx, dword [esi + 8]
mov dword [esi + 0x118], ecx
movaps xmm0, xmmword [edx]
movapd xmm1, xmmword [edx + 0x10]
xorps xmm0, xmmword [eax]
movaps xmmword [edx], xmm0
xorpd xmm1, xmmword [eax + 0x10]
movapd xmmword [edx + 0x10], xmm1
push 0
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
add esp, 8
fstp qword [esi + 0xc0]
movsd xmm0, qword [esi + 0xc0]
cmp dword [0x42c2f8], 0xa
jl 0x4057c2
mov eax, dword [0x42c2fc]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x4057c2
mov dword [esi + 0x70], edi
push eax
sub esp, 0xc
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
push eax
sub esp, 0xc
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
push eax
sub esp, 0xc
mov ebx, esp
and ebx, 0xfffffff0
mov esp, ebx
push eax
sub esp, 0xc
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x78], ecx
mov esp, ecx
push eax
sub esp, 0x1c
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x68], ecx
mov esp, ecx
cmp dword [0x42c300], 0xa
jl 0x405392
mov ecx, dword [0x42c304]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
jne 0x405790
lea ecx, [esi + 0x100]
xor edx, edx
mov edx, dword [esi + 0x54]
mov dword [eax], edx
mov edx, dword [esi + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x44]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x14]
mov dword [esi + 0x104], edx
mov edx, dword [esi + 4]
mov dword [esi + 0x100], edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x10c], edx
mov edx, dword [esi + 0xc]
mov dword [esi + 0x108], edx
movapd xmm0, xmmword [eax]
xorpd xmm0, xmmword [ecx]
movapd xmmword [eax], xmm0
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fstp st(0)
add esp, 8
cmp dword [0x42c308], 0xa
jl 0x40540c
mov eax, dword [0x42c30c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x4057a0
mov eax, dword [esi + 0x40]
mov dword [edi], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0xc], eax
lea eax, [esi + 0x100]
xor ecx, ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x104], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x100], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
movapd xmm0, xmmword [edi]
xorpd xmm0, xmmword [eax]
movapd xmmword [edi], xmm0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fstp st(0)
add esp, 8
mov eax, dword [0x42c310]
mov edi, dword [0x42c314]
lea ecx, [eax + 1]
imul ecx, eax
mov dword [esi + 0x2c], ecx
test cl, 1
sete ah
cmp edi, 0xa
setl al
or al, ah
mov byte [esi + 0x28], al
cmp al, 1
mov eax, dword [esi + 0xa0]
je 0x4054a3
mov dword [ebx], eax
mov edx, dword [esi + 0x4c]
mov dword [ebx + 4], edx
cmp edi, 0xa
mov edx, dword [esi + 0x4c]
mov edi, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
jl 0x405500
and dword [esi + 0x2c], 1
jne 0x405720
jmp 0x405500
mov ecx, 0x8c7c259
mov edx, 0x8ec6fa75
mov eax, dword [esi + 8]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov ecx, 0x9adf42f2
mov edx, 0x7e1a201e
mov dword [eax + 0xc], edx
mov dword [eax + 8], ecx
jmp 0x405080
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], ecx
cmp byte [esi + 0x28], 0
je 0x405720
lea eax, [esi + 0x100]
xor ecx, ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x100], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x104], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
movapd xmm0, xmmword [ebx]
xorpd xmm0, xmmword [eax]
movapd xmmword [ebx], xmm0
push 0
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
call ebx
fstp st(0)
add esp, 8
cmp dword [0x42c318], 0xa
jl 0x40557a
mov eax, dword [0x42c31c]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x4057b0
mov eax, dword [esi + 0x90]
mov edi, dword [esi + 0x78]
mov dword [edi], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x88]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xc], eax
lea eax, [esi + 0x100]
xor ecx, ecx
mov edx, ebx
mov ebx, dword [esi + 0x14]
mov dword [esi + 0x104], ebx
mov ecx, dword [esi + 4]
mov dword [esi + 0x100], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
movapd xmm0, xmmword [edi]
xorpd xmm0, xmmword [eax]
movapd xmmword [edi], xmm0
push 0
push edi
call edx
fstp st(0)
add esp, 8
xorpd xmm0, xmm0
ucomisd xmm0, qword [esi + 0x30]
ja 0x405730
cmp dword [0x42c320], 0xa
jl 0x40560d
mov eax, dword [0x42c324]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x4057c0
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x68]
mov dword [edx], eax
mov eax, dword [esi + 0x60]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x5c]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x58]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x14], eax
mov dword [esi + 0x104], ebx
mov edi, dword [esi + 4]
mov dword [esi + 0x100], edi
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x108], ecx
mov dword [esi + 0x114], eax
mov eax, dword [esi + 0x70]
mov dword [edx + 0x10], eax
mov dword [esi + 0x110], eax
mov eax, dword [esi + 8]
mov dword [edx + 0x18], eax
mov ecx, dword [esi + 0x84]
mov dword [edx + 0x1c], ecx
mov dword [esi + 0x11c], ecx
mov dword [esi + 0x118], eax
lea eax, [esi + 0x100]
xor ecx, ecx
movapd xmm0, xmmword [edx]
movapd xmm1, xmmword [edx + 0x10]
xorpd xmm0, xmmword [eax]
movapd xmmword [edx], xmm0
xorpd xmm1, xmmword [eax + 0x10]
movapd xmmword [edx + 0x10], xmm1
push 0
push edx
mov eax, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
call eax
fstp st(0)
add esp, 8
sub esp, 0x10
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
push eax
sub esp, 0xc
mov edx, edi
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x10], ecx
mov esp, ecx
push eax
sub esp, 0xc
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 8], ecx
mov esp, ecx
push eax
sub esp, 0xc
mov edi, esp
and edi, 0xfffffff0
mov esp, edi
push eax
sub esp, 0x1c
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x28], ecx
mov esp, ecx
cmp dword [0x42c300], 0xa
jl 0x404f2d
mov ecx, dword [0x42c304]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
mov edx, dword [esi + 4]
je 0x404f2d
jmp 0x404ea0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], ecx
jmp 0x405500
movsd xmm0, qword [esi + 0x30]
ucomisd xmm0, qword [0x40d540]
jae 0x4055f0
sub esp, 8
movsd xmm0, qword [esi + 0x30]
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
fstp st(0)
add esp, 8
jmp 0x4055f0
jmp 0x405760
jmp 0x405770
jmp 0x405780
jmp 0x405790
jmp 0x4057a0
jmp 0x4057b0
jmp 0x4057c0
xorpd xmm1, xmm1
xor eax, eax
movss xmm2, dword [ebp + 8]
ucomiss xmm1, xmm2
seta cl
movsd xmm2, qword [0x40d530]
ja 0x4057e1
xorpd xmm2, xmm2
movsd xmm1, qword [esi + 0x78]
cvtsd2ss xmm1, xmm1
mulsd xmm2, xmm0
movaps xmm3, xmmword [esi + 0xf0]
mulss xmm1, xmm3
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
movsd xmm1, qword [esi + 0x70]
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
mulss xmm0, xmm3
cvtss2sd xmm0, xmm0
subsd xmm0, qword [esi + 0x68]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm3
cvtss2sd xmm0, xmm0
movsd xmm1, qword [esi + 0xb0]
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd xmm1, qword [esi + 0xa8]
mulsd xmm1, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
mov al, cl
movss xmm1, dword [eax*4 + 0x40d538]
mulss xmm1, xmm0
addss xmm1, xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
addsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss dword [esi + 0xa4], xmm0
fld dword [esi + 0xa4]
fstp xword [esi + 0x18]
mov ecx, dword [esi + 0x128]
xor ecx, ebp
call fcn.0040ba3d
fld xword [esi + 0x18]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret