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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x818
movsd xmm3, qword [0x484f10]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x4c], eax
push esi
xorps xmm1, xmm1
mov dword [esp + 0xcc], edx
mov esi, eax
mov dword [esp + 0x20], 0
movsx eax, byte [eax]
movapd xmm2, xmm1
mov dword [esp + 0xb0], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
movsd qword [esp + 0x74], xmm1
movsd qword [esp + 4], xmm2
mov dword [esp + 0x24], esi
movsd qword [esp + 0x5c], xmm3
push edi
cmp eax, 0x2d
ja 0x41e633
jmp 0x41e600
movzx eax, byte [eax + 0x41fb4c]
jmp dword [eax*4 + 0x41fb38]
mov al, byte [esi]
mov byte [esp + 0x4f], al
cmp al, 0x30
jne 0x41e65d
mov dword [esp + 0x44], 1
inc esi
cmp byte [esi], 0x30
je 0x41e645
mov al, byte [esi]
mov dword [esp + 0x28], esi
mov byte [esp + 0x4f], al
test al, al
je 0x41fb13
movsx edi, byte [esp + 0x4f]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x58], esi
xor edx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
cmp edi, 0x30
jl 0x41e6be
lea ecx, [ecx]
cmp edi, 0x39
jg 0x41e6ba
cmp eax, 9
jge 0x41e695
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea edx, [edi + eax*2]
jmp 0x41e6a3
cmp eax, 0x10
jge 0x41e6a7
lea eax, [ecx - 6]
lea eax, [ecx + eax*4]
lea ecx, [edi + eax*2]
mov eax, dword [esp + 0x20]
movsx edi, byte [esi + 1]
inc esi
inc eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], eax
cmp edi, 0x30
jge 0x41e680
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x20]
cmp edi, 0x2e
jne 0x41e7fd
movsx edi, byte [esi + 1]
inc esi
mov eax, esi
mov dword [esp + 0x50], esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x90], eax
sub eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], esi
test eax, eax
jne 0x41e763
cmp edi, 0x30
jne 0x41e747
xor eax, eax
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
inc eax
mov dword [esp + 0x28], esi
cmp edi, 0x30
je 0x41e730
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x41e7f9
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x58], esi
jmp 0x41e773
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x41e7f5
mov eax, dword [esp + 0x3c]
inc eax
sub edi, 0x30
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], edi
je 0x41e7e3
add dword [esp + 0x30], eax
cmp eax, 1
jle 0x41e7b9
mov esi, dword [esp + 0x20]
lea edi, [eax - 1]
mov eax, esi
inc esi
cmp eax, 9
jge 0x41e7a0
lea edx, [edx + edx*4]
add edx, edx
jmp 0x41e7aa
cmp esi, 0x10
jg 0x41e7aa
lea ecx, [ecx + ecx*4]
add ecx, ecx
dec edi
jne 0x41e791
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x20]
cmp eax, 9
jge 0x41e7ce
lea eax, [edx + edx*4]
lea edx, [edi + eax*2]
jmp 0x41e7db
cmp dword [esp + 0x20], 0x10
jg 0x41e7db
lea eax, [ecx + ecx*4]
lea ecx, [edi + eax*2]
mov dword [esp + 0x3c], 0
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], esi
jmp 0x41e763
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
cmp edi, 0x65
je 0x41e813
cmp edi, 0x45
jne 0x41e8fe
test eax, eax
jne 0x41e827
cmp dword [esp + 0x3c], eax
jne 0x41e827
cmp dword [esp + 0x44], eax
je case.0x41e942.74
movsx edi, byte [esi + 1]
mov dword [esp + 0x54], esi
mov eax, edi
inc esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], esi
sub eax, 0x2b
je 0x41e850
sub eax, 2
jne 0x41e859
mov dword [esp + 0x50], 1
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x28], esi
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x41e8f6
cmp edi, 0x30
jne 0x41e87e
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
cmp edi, 0x30
je 0x41e870
mov dword [esp + 0x28], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x41e8f2
mov dword [esp + 0x5c], esi
lea eax, [edi - 0x30]
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], esi
cmp edi, 0x30
jl 0x41e8c4
mov ecx, eax
cmp edi, 0x39
jg 0x41e8bc
inc esi
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
mov dword [esp + 0x28], esi
lea ecx, [edi + ecx*2]
movsx edi, byte [esi]
cmp edi, 0x30
jge 0x41e8a1
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 0x5c]
cmp eax, 8
jg 0x41e8da
mov eax, dword [esp + 0x18]
cmp eax, 0x4e1f
jle 0x41e8e3
mov eax, 0x4e1f
mov dword [esp + 0x18], eax
cmp dword [esp + 0x50], 0
je 0x41e8fe
neg eax
mov dword [esp + 0x18], eax
jmp 0x41e8fe
xor eax, eax
jmp 0x41e902
mov esi, dword [esp + 0x54]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], 0
jne 0x41ea28
cmp dword [esp + 0x3c], 0
jne 0x41fb13
cmp dword [esp + 0x44], 0
jne 0x41fb13
mov eax, dword [esp + 0x48]
test eax, eax
jne case.0x41e942.74
add edi, 0xffffffb7
cmp edi, 0x25
ja case.0x41e942.74
movzx eax, byte [edi + 0x41fb88]
jmp dword [eax*4 + 0x41fb7c]
mov edx, 0x6e
mov edi, 0x484765
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x41e963
add ecx, 0x20
cmp ecx, edx
jne case.0x41e942.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x41e953
mov edx, esi
mov dword [esp + 0x2c], 0x484769
mov edi, 0x69
movsx ecx, byte [edx + 1]
lea edx, [edx + 1]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x41e994
add ecx, 0x20
cmp ecx, edi
jne 0x41e9ad
mov eax, dword [esp + 0x2c]
movsx edi, byte [eax]
inc eax
mov dword [esp + 0x2c], eax
test edi, edi
jne 0x41e982
lea esi, [edx + 1]
jmp 0x41e9ae
inc esi
mov dword [esp + 0xc], 0x7ff00000
mov dword [esp + 8], 0
movsd xmm2, qword [esp + 8]
jmp 0x41fb13
mov edx, 0x61
mov edi, 0x484771
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x41e9e3
add ecx, 0x20
cmp ecx, edx
jne case.0x41e942.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x41e9d3
inc esi
mov dword [esp + 0xc], 0x7ff80000
mov dword [esp + 0x28], esi
mov dword [esp + 8], edx
cmp byte [esi], 0x28
jne 0x41e9be
lea edx, [esp + 0x28]
lea ecx, [esp + 8]
call fcn.0041dec0
movsd xmm2, qword [esp + 8]
jmp 0x41fb0f
mov esi, dword [esp + 0x54]
xor eax, eax
jmp 0x41fb17
sub eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x14]
test eax, eax
movd xmm2, edx
cmove eax, edi
mov dword [esp + 0x14], eax
mov eax, 0x10
cmp edi, eax
cvtdq2pd xmm2, xmm2
cmovl eax, edi
mov dword [esp + 0x54], eax
mov eax, edx
shr eax, 0x1f
addsd xmm2, qword [eax*8 + 0x484f00]
mov eax, dword [esp + 0x54]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
cmp eax, 9
jle 0x41eabb
movsd xmm1, qword [eax*8 + 0x4847b0]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mulsd xmm1, xmm2
addsd xmm0, qword [ecx*8 + 0x484f00]
addsd xmm1, xmm0
movaps xmm2, xmm1
movsd xmm1, qword [esp + 0x78]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
mov eax, dword [esp + 0x18]
cmp edi, 0xf
jg 0x41eb34
test eax, eax
je 0x41fb13
jle 0x41eb1c
cmp eax, 0x16
jg 0x41eae8
movsd xmm0, qword [eax*8 + 0x4847f8]
mulsd xmm0, xmm2
movaps xmm2, xmm0
jmp 0x41fb13
mov ecx, 0xf
sub ecx, edi
lea eax, [ecx + 0x16]
cmp dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
jg 0x41eb34
movsd xmm0, qword [ecx*8 + 0x4847f8]
sub eax, ecx
mulsd xmm0, xmm2
mulsd xmm0, qword [eax*8 + 0x4847f8]
movaps xmm2, xmm0
jmp 0x41fb13
cmp eax, 0xffffffea
jl 0x41eb34
shl eax, 3
mov ecx, 0x4847f8
sub ecx, eax
divsd xmm2, qword [ecx]
jmp 0x41fb13
sub eax, dword [esp + 0x54]
xor ecx, ecx
add eax, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0xb0], ecx
test eax, eax
jle 0x41ec0b
mov ecx, eax
and ecx, 0xf
je 0x41eb6c
movsd xmm0, qword [ecx*8 + 0x4847f8]
mulsd xmm0, xmm2
movaps xmm2, xmm0
movsd qword [esp + 8], xmm2
and eax, 0xfffffff0
je 0x41ed07
cmp eax, 0x134
jg 0x41f7ae
sar eax, 4
xor ecx, ecx
cmp eax, 1
jle 0x41ebab
lea ebx, [ebx]
test al, 1
je 0x41eba3
mulsd xmm2, qword [ecx*8 + 0x4847d0]
movsd qword [esp + 8], xmm2
sar eax, 1
inc ecx
cmp eax, 1
jg 0x41eb90
movsd xmm0, qword [ecx*8 + 0x4847d0]
sub dword [esp + 0xc], 0x3500000
mulsd xmm0, qword [esp + 8]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x7ff00000
cmp ecx, 0x7ca00000
ja 0x41f7ae
cmp ecx, 0x7c900000
jbe 0x41ebfd
mov dword [esp + 0xc], 0x7fefffff
mov dword [esp + 8], 0xffffffff
jmp 0x41ed07
add eax, 0x3500000
mov dword [esp + 0xc], eax
jmp 0x41ed07
jns 0x41ed07
neg eax
mov ecx, eax
and ecx, 0xf
je 0x41ec2f
divsd xmm2, qword [ecx*8 + 0x4847f8]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
sar eax, 4
test eax, eax
je 0x41ed07
cmp eax, 0x20
jge 0x41fa00
test al, 0x10
mov dword [esp + 0x5c], 0x6a
mov ecx, 0
cmovne ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0xb0], ecx
test eax, eax
jle 0x41ec91
mov ecx, 0x4847a0
jmp 0x41ec70
test al, 1
je 0x41ec7e
mulsd xmm2, qword [ecx]
movsd qword [esp + 8], xmm2
sar eax, 1
add ecx, 8
test eax, eax
jg 0x41ec70
mov ecx, dword [esp + 0x44]
movsd qword [esp + 0x30], xmm2
test ecx, ecx
je 0x41ecf3
mov eax, dword [esp + 0xc]
mov ecx, 0x6b
shr eax, 0x14
and eax, 0x7ff
sub ecx, eax
test ecx, ecx
jle 0x41ecf3
cmp ecx, 0x20
jl 0x41ece2
mov dword [esp + 8], 0
cmp ecx, 0x35
jl 0x41ecce
mov dword [esp + 0xc], 0x3700000
movsd xmm0, qword [esp + 8]
jmp 0x41ecf9
add ecx, 0xffffffe0
or eax, 0xffffffff
shl eax, cl
and dword [esp + 0xc], eax
movsd xmm0, qword [esp + 8]
jmp 0x41ecf9
or eax, 0xffffffff
shl eax, cl
and dword [esp + 8], eax
movsd xmm0, qword [esp + 8]
jmp 0x41ecf9
movsd xmm0, qword [esp + 0x30]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x41fa00
mov esi, dword [esp + 0x14]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], esi
cmp edi, 0x28
jle 0x41eddf
mov eax, 0x12
mov ecx, eax
cmp esi, eax
jge 0x41ed33
mov eax, dword [esp + 0x48]
add eax, ecx
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x58]
mov edi, edi
dec eax
cmp eax, dword [esp + 0x2c]
jg 0x41ed4e
cmp eax, edi
jl 0x41ed4e
lea eax, [edi - 1]
cmp byte [eax + esi], 0x30
jne 0x41ed57
dec ecx
jmp 0x41ed40
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
sub edi, ecx
add dword [esp + 0x18], edi
cmp esi, ecx
mov edi, ecx
cmovg esi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
cmp ecx, 9
jge 0x41eddf
xor edx, edx
xor esi, esi
cmp dword [esp + 0x14], edx
jle 0x41edaa
mov edi, dword [esp + 0x14]
jmp 0x41ed90
mov eax, dword [esp + 0x58]
lea edx, [edx + edx*4]
lea edx, [edx - 0x18]
movsx ecx, byte [esi + eax]
inc esi
lea edx, [ecx + edx*2]
cmp esi, edi
jl 0x41ed90
mov edi, dword [esp + 0x20]
cmp esi, edi
jge 0x41eddb
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x58]
sub edi, esi
mov dword [esp + 0x2c], edi
mov edi, eax
mov dword [esp + 0x5c], eax
dec dword [esp + 0x2c]
lea edx, [edx + edx*4]
movsx eax, byte [edi]
lea edx, [edx - 0x18]
lea edi, [edi + 1]
lea edx, [eax + edx*2]
jne 0x41edc2
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
push edx
push edi
mov edx, esi
call fcn.0041d240
movsd xmm0, qword [0x484ea0]
mov ecx, eax
movsd qword [esp + 0x12c], xmm0
add esp, 0xc
movsd xmm0, qword [0x484e90]
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [0x484e80]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [0x484ee0]
movsd qword [esp + 0x138], xmm0
movsd xmm0, qword [0x484ec0]
movsd qword [esp + 0x110], xmm0
movsd xmm0, qword [0x484e60]
movsd qword [esp + 0x130], xmm0
movsd xmm0, qword [0x484e78]
movsd qword [esp + 0x118], xmm0
movsd xmm0, qword [0x484e88]
mov dword [esp + 0x50], ecx
movsd qword [esp + 0x128], xmm0
mov ecx, dword [ecx + 4]
mov esi, 1
call fcn.0041d060
mov edx, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 0x10]
lea ecx, [ecx*4 + 8]
push ecx
lea ecx, [edx + 0xc]
push ecx
lea ecx, [eax + 0xc]
push ecx
call fcn.00449e60
add esp, 0xc
lea eax, [esp + 0xdc]
lea edx, [esp + 0x5c]
lea ecx, [esp + 8]
push eax
call fcn.0041dc80
add esp, 4
mov dword [esp + 0x3c], eax
mov ecx, esi
call fcn.0041d390
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x41eeea
xor edx, edx
mov dword [esp + 0x54], eax
xor esi, esi
jmp 0x41eef8
mov edx, eax
xor ecx, ecx
neg edx
mov dword [esp + 0x54], ecx
mov esi, edx
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
test ecx, ecx
js 0x41ef10
add esi, ecx
mov dword [esp + 0x2c], esi
jmp 0x41ef16
sub eax, ecx
mov dword [esp + 0x1c], eax
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0xdc]
lea eax, [esi - 1]
add eax, ecx
cmp eax, 0xfffffc02
jge 0x41ef39
add ecx, 0x433
jmp 0x41ef40
mov ecx, 0x36
sub ecx, esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
add esi, ecx
add eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, eax
cmp esi, ecx
mov dword [esp + 0x1c], ecx
mov eax, ecx
cmovl eax, esi
cmp eax, dword [esp + 0x30]
cmovg eax, dword [esp + 0x30]
test eax, eax
jle 0x41ef76
sub ecx, eax
sub esi, eax
sub dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
test edx, edx
jle 0x41f0f7
mov ecx, dword [esp + 0x14]
call fcn.0041d570
mov edx, dword [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.0041d430
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x41f0ef
cmp dword [ecx + 4], 7
jle 0x41efc4
push ecx
call fcn.0044bd74
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, eax
mov dword [esp + 0x3c], ecx
jmp 0x41f0fb
mov eax, dword [esp + 0x24]
test al, 1
je 0x41efdf
and eax, 0xfffffffe
lea ecx, [esp + 0x560]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov eax, dword [0x48d7c4]
test eax, 0xfffffffe
jne 0x41f03e
mov ecx, 1
xor eax, eax
mov edx, 0x48d7c4
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41f024
mov eax, dword [0x48d7c4]
cmp eax, 1
jne 0x41f03e
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x48d7c4]
cmp eax, 1
je 0x41f010
jmp 0x41f03e
push 0x7d0
push 0x48d7c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x48d7c4], 0x48d7c8
mov eax, dword [0x48d7c4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
mov eax, dword [ecx*4 + 0x48e7c0]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x48e7c0], edx
test al, 2
je 0x41f07c
and eax, 0xfffffffd
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov eax, dword [0x48d7c4]
test eax, 0xfffffffe
jne 0x41f0d4
mov ecx, 1
xor eax, eax
mov edx, 0x48d7c4
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41f0ba
mov eax, dword [0x48d7c4]
cmp eax, 1
jne 0x41f0d4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x48d7c4]
cmp eax, 1
je 0x41f0a6
jmp 0x41f0d4
push 0x7d0
push 0x48d7c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x48d7c4], 0x48d7c8
mov eax, dword [0x48d7c4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov dword [esp + 0x3c], ecx
jmp 0x41f0fb
mov ecx, dword [esp + 0x3c]
test esi, esi
jle 0x41f10e
mov edx, esi
call fcn.0041d720
mov esi, eax
mov dword [esp + 0x3c], esi
jmp 0x41f112
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x41f12b
mov edx, eax
call fcn.0041d570
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x41f140
mov edx, eax
call fcn.0041d720
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x41f15b
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.0041d720
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov edx, ecx
mov ecx, esi
call fcn.0041d930
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
mov dword [ecx + 0xc], 0
mov ecx, esi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x2c], esi
sub ecx, eax
jne 0x41f1d7
mov edx, dword [esp + 0x14]
lea ecx, [eax - 1]
mov esi, dword [esp + 0x1c]
add esi, 0x14
lea ecx, [esi + ecx*4]
lea edx, [edx + eax*4]
mov eax, dword [ecx]
add edx, 0x10
cmp eax, dword [edx]
jne 0x41f1c5
cmp ecx, esi
jbe 0x41f25d
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x41f1b0
mov eax, dword [ecx]
cmp eax, dword [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0xa4], edi
jle 0x41f1e8
test ecx, ecx
jle 0x41f796
test ecx, ecx
js 0x41f90c
je 0x41f7da
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xd8]
call fcn.0041db20
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd4]
movapd xmm1, xmm0
movsd qword [esp + 0xb8], xmm1
call fcn.0041db20
mov eax, dword [esp + 0x14]
movsd qword [esp + 0xe8], xmm0
sub esi, dword [eax + 0x10]
shl esi, 5
sub esi, dword [esp + 0xd4]
add esi, dword [esp + 0xd8]
test esi, esi
jle 0x41f264
shl esi, 0x14
add dword [esp + 0xbc], esi
movsd xmm1, qword [esp + 0xb8]
jmp 0x41f27a
xor ecx, ecx
jmp 0x41f1cf
imul eax, esi, 0xfff00000
add dword [esp + 0xec], eax
movsd xmm0, qword [esp + 0xe8]
divsd xmm1, xmm0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x120]
comisd xmm0, xmm1
jb 0x41f3be
test edx, edx
je 0x41f2ac
movsd xmm2, qword [esp + 0xe0]
movapd xmm1, xmm2
jmp 0x41f2e9
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41f39a
test eax, 0xfffff
jne 0x41f3a7
movsd xmm0, qword [esp + 0xe0]
comisd xmm0, xmm1
jbe 0x41f38c
movsd xmm1, qword [esp + 0xc0]
movapd xmm2, xmm1
xorpd xmm2, xmmword [esp + 0x60]
mov esi, eax
and esi, 0x7ff00000
cmp esi, 0x7fe00000
jne 0x41f3ed
movsd xmm0, qword [esp + 8]
sub eax, 0x3500000
mov dword [esp + 0xc], eax
and eax, 0x7ff00000
sub eax, 0x3400000
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], 0
movsd xmm0, qword [esp + 0xf0]
mulsd xmm0, xmm2
addsd xmm0, qword [esp + 8]
movsd qword [esp + 8], xmm0
mov ecx, dword [esp + 0xc]
mov eax, ecx
and eax, 0x7ff00000
cmp eax, 0x7ca00000
jb 0x41f3d8
cmp dword [esp + 0x84], 0x7fefffff
jne 0x41f377
cmp dword [esp + 0x80], 0xffffffff
je 0x41f7aa
mov dword [esp + 0xc], 0x7fefffff
mov dword [esp + 8], 0xffffffff
jmp 0x41f50d
mulsd xmm1, qword [esp + 0xc0]
jmp 0x41f2df
cmp ecx, 1
jne 0x41f3a7
test eax, eax
je 0x41f9de
movsd xmm1, qword [esp + 0xe0]
movsd xmm2, qword [esp + 0x138]
jmp 0x41f2e9
mulsd xmm1, qword [esp + 0xc0]
test edx, edx
je 0x41f2df
movapd xmm2, xmm1
jmp 0x41f2e9
add ecx, 0x3500000
mov dword [esp + 0xc], ecx
movsd xmm0, qword [esp + 8]
jmp 0x41f499
cmp dword [esp + 0x44], 0
je 0x41f464
cmp esi, 0x6a00000
ja 0x41f464
movsd xmm0, qword [esp + 0x110]
comisd xmm0, xmm1
jb 0x41f444
movapd xmm0, xmm1
call fcn.00466011
mov edx, dword [esp + 0x30]
test eax, eax
mov ecx, 1
cmove eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x484f00]
movapd xmm2, xmm1
test edx, edx
jne 0x41f444
xorpd xmm2, xmmword [esp + 0x60]
mov eax, 0x6b00000
movsd qword [esp + 0xc8], xmm2
sub eax, esi
add dword [esp + 0xcc], eax
movsd xmm2, qword [esp + 0xc8]
lea eax, [esi - 0x3400000]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
movsd xmm0, qword [esp + 0x108]
mulsd xmm0, xmm2
addsd xmm0, qword [esp + 8]
movsd qword [esp + 8], xmm0
mov ecx, dword [esp + 0xc]
movsd qword [esp + 0x30], xmm0
cmp dword [esp + 0xa4], edi
jne 0x41f50d
cmp dword [esp + 0x44], 0
jne 0x41f50d
mov eax, ecx
and eax, 0x7ff00000
cmp esi, eax
jne 0x41f50d
cvttsd2si eax, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
test edx, edx
jne 0x41f4eb
cmp dword [esp + 8], edx
jne 0x41f4eb
test ecx, 0xfffff
jne 0x41f4eb
movsd xmm0, qword [esp + 0x130]
comisd xmm0, xmm1
jmp 0x41f507
movsd xmm0, qword [esp + 0x118]
comisd xmm0, xmm1
ja 0x41fa51
comisd xmm1, xmmword [esp + 0x128]
ja 0x41fa51
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x41f5f6
cmp dword [esi + 4], 7
jle 0x41f52d
push esi
call fcn.0044bd74
add esp, 4
jmp 0x41f5f6
mov eax, dword [esp + 0x24]
test al, 4
je 0x41f548
and eax, 0xfffffffb
lea ecx, [esp + 0x140]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov eax, dword [0x48d7c4]
test eax, 0xfffffffe
jne 0x41f5a0
mov ecx, 1
xor eax, eax
mov edx, 0x48d7c4
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41f586
mov eax, dword [0x48d7c4]
cmp eax, 1
jne 0x41f5a0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x48d7c4]
cmp eax, 1
je 0x41f572
jmp 0x41f5a0
push 0x7d0
push 0x48d7c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x48d7c4], 0x48d7c8
mov eax, dword [0x48d7c4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x48e7c0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x48e7c0], esi
test al, 8
je 0x41f5da
and eax, 0xfffffff7
lea ecx, [esp + 0x400]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov ecx, 0x48d7c4
call fcn.00414b00
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x48]
test esi, esi
je 0x41f67a
cmp dword [esi + 4], 7
jle 0x41f60f
push esi
call fcn.0044bd74
add esp, 4
jmp 0x41f67a
mov eax, dword [esp + 0x24]
test al, 0x10
je 0x41f62a
and eax, 0xffffffef
lea ecx, [esp + 0x6c0]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov ecx, 0x48d7c4
call fcn.00414b00
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x48e7c0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x48e7c0], esi
test al, 0x20
je 0x41f669
and eax, 0xffffffdf
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov ecx, 0x48d7c4
call fcn.00414b00
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
cmp dword [esi + 4], 7
jle 0x41f68f
push esi
call fcn.0044bd74
add esp, 4
jmp 0x41f6fc
mov eax, dword [esp + 0x24]
test al, 0x40
je 0x41f6aa
and eax, 0xffffffbf
lea ecx, [esp + 0x350]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov ecx, 0x48d7c4
call fcn.00414b00
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x48e7c0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x48e7c0], esi
test al, al
jns 0x41f6eb
and eax, 0xffffff7f
lea ecx, [esp + 0x4b0]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov ecx, 0x48d7c4
call fcn.00414b00
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x1c]
cmp dword [esi + 4], 7
jle 0x41f718
push esi
call fcn.0044bd74
mov ecx, dword [esp + 0x54]
add esp, 4
jmp 0x41ee81
mov eax, dword [esp + 0x24]
test eax, 0x100
je 0x41f738
and eax, 0xfffffeff
lea ecx, [esp + 0x610]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov ecx, 0x48d7c4
call fcn.00414b00
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x48e7c0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x48e7c0], esi
test eax, 0x200
je 0x41f77c
and eax, 0xfffffdff
lea ecx, [esp + 0x770]
mov dword [esp + 0x24], eax
call fcn.0040e420
mov ecx, 0x48d7c4
call fcn.00414b00
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x50]
jmp 0x41ee81
test edx, edx
jne 0x41fa45
mov dword [esp + 0xa4], edi
jmp 0x41f914
mov esi, dword [esp + 0x28]
call fcn.0044d6e4
movsd xmm3, qword [esp + 0x60]
mov dword [esp + 0xc], 0x7ff00000
mov dword [esp + 8], 0
movsd xmm2, qword [esp + 8]
mov dword [eax], 0x22
jmp 0x41fb13
mov esi, dword [esp + 0xc]
test edx, edx
mov edx, dword [esp + 8]
je 0x41f845
mov eax, esi
and eax, 0xfffff
cmp eax, 0xfffff
jne 0x41f855
cmp dword [esp + 0x44], 0
je 0x41f81a
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6a00000
ja 0x41f81a
shr eax, 0x14
mov ecx, 0x6b
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
jmp 0x41f81d
or eax, 0xffffffff
cmp edx, eax
jne 0x41f855
and esi, 0x7ff00000
mov dword [esp + 8], 0
add esi, 0x100000
mov dword [esp + 0x98], 0
jmp 0x41fa41
test esi, 0xfffff
jne 0x41f855
test edx, edx
je 0x41f9c2
test dl, 1
je 0x41fa45
mov ecx, dword [esp + 0x30]
and esi, 0x7ff00000
sub esi, 0x3400000
test ecx, ecx
je 0x41f8b2
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], 0
movsd xmm0, qword [esp + 0x100]
addsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
movsd qword [esp + 8], xmm0
mov eax, 1
sub eax, ecx
mov dword [esp + 0x98], eax
jmp 0x41fa51
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x78]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], 0
subsd xmm0, qword [esp + 0xf8]
ucomisd xmm0, xmm1
movsd qword [esp + 0x30], xmm0
movsd qword [esp + 8], xmm0
lahf
test ah, 0x44
jp 0x41f89f
cmp dword [esp + 0xa4], edi
jle 0x41f9fa
mov dword [esp + 0xb4], 1
jmp 0x41fa51
test edx, edx
jne 0x41fa45
cmp dword [esp + 8], 0
jne 0x41fa45
mov esi, dword [esp + 0xc]
test esi, 0xfffff
jne 0x41fa45
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jbe 0x41fa45
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x14], 0
jne 0x41f955
cmp dword [ecx + 0x10], 1
jle 0x41fa45
mov edx, 1
call fcn.0041d720
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [ecx + 0x10]
sub eax, edx
jne 0x41f9ba
lea eax, [ecx + 0x14]
lea ecx, [edx - 1]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
add eax, 0x10
lea edx, [eax + edx*4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41f9b0
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add eax, 0x14
cmp ecx, eax
jbe 0x41fa45
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x41f990
mov eax, dword [ecx]
cmp eax, dword [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jle 0x41fa45
cmp dword [esp + 0x44], 0
je 0x41fa2c
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jg 0x41fa2c
cmp eax, 0x3700000
jg 0x41fa45
cmp dword [esp + 0xa4], edi
jle 0x41f9f4
mov dword [esp + 0xb4], 1
jmp 0x41fa45
movsd xmm1, qword [esp + 0x78]
mov esi, dword [esp + 0x28]
jmp 0x41fa06
movsd xmm1, qword [esp + 0x78]
movapd xmm0, xmm1
movsd qword [esp + 0x30], xmm0
call fcn.0044d6e4
movsd xmm2, qword [esp + 0x30]
movsd xmm3, qword [esp + 0x60]
mov dword [eax], 0x22
jmp 0x41fb13
and esi, 0x7ff00000
mov dword [esp + 8], 0xffffffff
dec esi
or esi, 0xfffff
mov dword [esp + 0xc], esi
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x3c]
call fcn.0041d120
mov ecx, dword [esp + 0x48]
call fcn.0041d120
mov ecx, dword [esp + 0x14]
call fcn.0041d120
mov ecx, dword [esp + 0x50]
call fcn.0041d120
mov ecx, dword [esp + 0x1c]
call fcn.0041d120
cmp dword [esp + 0xa4], edi
jle 0x41faae
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xc]
call fcn.0041e220
mov eax, dword [esp + 0xb4]
add esp, 4
movsd xmm2, qword [esp + 8]
jmp 0x41fab8
movsd xmm2, qword [esp + 0x30]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x41fb09
mov dword [esp + 0x84], 0x39500000
mov dword [esp + 0x80], 0
movsd xmm0, qword [esp + 0x80]
mulsd xmm0, xmm2
movaps xmm2, xmm0
movsd qword [esp + 8], xmm2
test dword [esp + 0xc], 0x7ff00000
movsd qword [esp + 0x30], xmm2
jne 0x41fb09
call fcn.0044d6e4
movsd xmm2, qword [esp + 0x30]
mov dword [eax], 0x22
movsd xmm3, qword [esp + 0x60]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xd0]
test ecx, ecx
je 0x41fb24
mov dword [ecx], esi
test eax, eax
je 0x41fb2c
xorpd xmm2, xmm3
pop edi
movapd xmm0, xmm2
pop esi
mov esp, ebp
pop ebp
ret