Function at 0x45ff10
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4b3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b46ec]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x320], edi
test eax, eax
jne 0x45ff50
push str.VestaEmergencyRun
jmp 0x45ff6c
push eax
lea eax, [ebp - 0x108]
push str.VestaEmergencyRun._d
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [edi + 0xdc]
mov dword [ebp - 0x324], eax
mov eax, dword [edi + 0xe0]
mov dword [ebp - 0x318], eax
sub eax, esi
test eax, 0xfffffffc
je 0x45ffdb
cmp esi, dword [ebp - 0x318]
je 0x45ffdb
mov eax, dword [esi]
mov dword [ebp - 0x314], eax
cmp dword [eax + 0x4934], 1
jge 0x45ffd0
push dword [eax + 0x14]
mov ecx, edi
call fcn.0045c730
test eax, eax
je 0x45ffd0
mov eax, dword [ebp - 0x314]
mov dword [eax + 0x4934], 1
add esi, 4
cmp esi, dword [ebp - 0x318]
jne 0x45ffa1
mov eax, dword [0x7c1e60]
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x31c], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x460014
cmp dword [0x4b3920], 3
je 0x460014
push 0
push 1
push 0x40b
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x7c1d10]
xorps xmm3, xmm3
movsd xmm2, qword [0x4af848]
test eax, eax
je 0x4601d1
mov dword [0x4b3934], 0
mov dword [0x4b398c], 0
mov dword [edi + 0x2ac], 0
mov edx, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
mov dword [0x7c1e4c], 1
cmp ecx, edx
je 0x460073
nop
mov eax, dword [ecx]
add ecx, 4
mov dword [eax + 0x4850], 0
cmp ecx, edx
jne 0x460060
mov esi, dword [edi + 0x158]
mov ecx, dword [edi + 0x154]
cmp ecx, esi
je 0x4600d6
movsd xmm1, qword [0x4af858]
movsd xmm0, qword [0x4af8b0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2450]
movsd qword [eax + 0x30], xmm1
movsd qword [eax + 0x38], xmm0
mov dword [eax + 0x58], 0
test edx, edx
je 0x4600cf
movsd xmm0, qword [edx + 0xa0]
comisd xmm0, xmm3
jbe 0x4600c7
mulsd xmm0, xmm2
movsd qword [eax + 0x38], xmm0
movsd xmm0, qword [0x4af8b0]
add ecx, 4
cmp ecx, esi
jne 0x460093
inc dword [edi + 0x19c]
push ecx
mov ecx, edi
call fcn.004613c0
mov ecx, dword [edi + 0xec]
mov eax, dword [edi + 0xe8]
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x30c], eax
cmp eax, ecx
je 0x4601a2
movsd xmm1, qword [0x4af848]
nop dword [eax]
mov esi, dword [eax]
mov eax, dword [esi + 0x485c]
mov edx, dword [esi + 0x4858]
mov dword [ebp - 0x328], eax
cmp edx, eax
je 0x46018b
nop dword [eax + eax]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x49a0]
sub eax, dword [ecx + 0x499c]
test eax, 0xfffffffc
je 0x46017a
mov eax, dword [ecx + 0x4880]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + ecx*8 - 0x18]
mov dword [ebp - 0x314], eax
movss xmm0, dword [ebp - 0x314]
mov eax, dword [esi + 0x10]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
movsd qword [eax + 0x28], xmm0
mov eax, dword [esi + 0x14]
movsd qword [eax + 0x28], xmm0
add edx, 4
cmp edx, dword [ebp - 0x328]
jne 0x460130
mov ecx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x30c]
add eax, 4
mov dword [ebp - 0x30c], eax
cmp eax, ecx
jne 0x460110
push ecx
mov ecx, edi
call fcn.004615f0
mov ecx, edi
call fcn.0043ac90
push edi
call fcn.0049cfe0
mov ecx, edi
call fcn.00438070
mov ecx, edi
call fcn.00438350
mov ecx, edi
call fcn.0044fc60
mov eax, dword [0x7c1d10]
mov dword [0x7c1d34], eax
cmp eax, dword [0x7c1e8c]
jg 0x460aad
mov ecx, edi
call fcn.00454e40
cmp dword [edi + 0xc], 0
je 0x4601fc
cmp dword [0x7c1e4c], 1
jne 0x460aad
push 0x7c1d48
lea eax, [ebp - 0x208]
push str._sBalance.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov eax, dword [edi + 0xc]
add esp, 4
test eax, eax
je 0x460255
cmp eax, 0x14
je 0x460255
push 1
lea esi, [edi + 0x1b0]
mov ecx, edi
push esi
call fcn.00438d60
mov dword [edi + 0x258], eax
test eax, eax
je 0x460255
push 2
push esi
mov ecx, edi
call fcn.00438d60
mov ecx, dword [0x7c1e4c]
mov eax, dword [0x7c1d34]
test ecx, ecx
je 0x46027d
cmp eax, dword [0x7c1d10]
jne 0x460384
cmp dword [edi + 0x19c], 1
jge 0x460384
cmp ecx, 1
je 0x460384
test ecx, ecx
jne 0x46029b
mov ecx, edi
call fcn.0044f6f0
call fcn.0047c8e0
mov eax, dword [0x7c1d34]
mov dword [0x4b3934], 0
mov dword [0x4b398c], 0
mov dword [edi + 0x2ac], 0
mov esi, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
mov dword [0x7c1e4c], 1
cmp ecx, esi
je 0x4602ec
nop dword [eax]
mov edx, dword [ecx]
cmp dword [edx + 0x4850], 0
je 0x4602e5
mov dword [edx + 0x4850], 0
add ecx, 4
cmp ecx, esi
jne 0x4602d0
mov ecx, dword [edi + 0x158]
mov edx, dword [edi + 0x154]
mov dword [ebp - 0x310], ecx
cmp edx, ecx
je 0x460378
movsd xmm0, qword [0x4af858]
mov edi, ecx
movsd xmm1, qword [0x4af8b0]
nop dword [eax + eax]
mov ecx, dword [edx]
mov esi, dword [ecx + 0x2450]
movsd qword [ecx + 0x30], xmm0
movsd qword [ecx + 0x38], xmm1
mov dword [ecx + 0x58], 0
test esi, esi
je 0x46036b
movsd xmm0, qword [esi + 0xa0]
xorps xmm1, xmm1
comisd xmm0, xmm1
movsd xmm1, qword [0x4af8b0]
jbe 0x460363
mulsd xmm0, qword [0x4af848]
movsd qword [ecx + 0x38], xmm0
movsd xmm0, qword [0x4af858]
add edx, 4
cmp edx, edi
jne 0x460320
mov edi, dword [ebp - 0x320]
inc dword [edi + 0x19c]
dec eax
jmp 0x460a9b
cmp dword [edi + 0xc], 0
jne 0x460732
test eax, eax
jle 0x4603fa
mov ecx, edi
call fcn.004375a0
mov esi, eax
xor eax, eax
cmp dword [ebp - 0x31c], eax
jne 0x4603c3
mov ecx, edi
call fcn.00437680
mov ecx, dword [ebp - 0x31c]
cmp eax, 1
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x31c], ecx
cmp dword [ebp - 0x318], 0
jne 0x4603fa
cmp esi, 1
je 0x4603d6
cmp eax, 1
jne 0x4603fa
mov esi, dword [0x7c1d34]
movsd xmm0, qword [edi + 0x1d8]
mov dword [ebp - 0x318], esi
movsd qword [edi + 0x1d0], xmm0
lea eax, [esi - 1]
jmp 0x460a9b
mov ecx, dword [edi + 0x104]
mov dword [ebp - 0x30c], ecx
mov ecx, dword [edi + 0x100]
mov esi, dword [ebp - 0x30c]
mov dword [ebp - 0x318], ecx
cmp ecx, esi
je 0x460482
nop dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x310], ecx
cmp dword [ecx + 0x1c], 3
jl 0x46046f
mov eax, dword [edi + 0x154]
mov edx, dword [edi + 0x158]
cmp eax, edx
je 0x46046f
mov esi, dword [ecx + 8]
mov ecx, dword [eax]
cmp dword [ecx + 0x10], esi
je 0x460451
add eax, 4
cmp eax, edx
jne 0x460441
jmp 0x460469
movsd xmm0, qword [ecx + 0x68]
mov ecx, dword [ebp - 0x310]
movsd qword [ecx + 0x108], xmm0
call fcn.00467940
mov esi, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x318]
add ecx, 4
mov dword [ebp - 0x318], ecx
cmp ecx, esi
jne 0x460420
push edi
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
call fcn.0049bb60
mov dword [edi + 0xc], eax
test eax, eax
jne 0x46071f
push eax
mov ecx, edi
call fcn.00461920
mov ecx, dword [edi + 0x5c]
mov eax, dword [edi + 0x58]
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x314], eax
cmp eax, ecx
je 0x4605a5
nop dword [eax]
push 0
push 0x4b3a68
push 0x4b3b30
push 0
push dword [eax]
call sub.VCRUNTIME140.dll___RTDynamicCast
mov esi, eax
add esp, 0x14
test esi, esi
je 0x460584
xor edi, edi
lea eax, [esi + 0x4998]
mov dword [ebp - 0x30c], eax
cmp dword [esi + 0x4970], edi
jl 0x460550
xor edx, edx
nop word [eax + eax]
mov ecx, dword [eax]
lea edx, [edx + 0x20]
mov eax, dword [esi + 0x4994]
inc edi
movsd xmm0, qword [ecx + edx - 0x18]
movsd qword [eax + edx - 0x18], xmm0
movsd xmm0, qword [ecx + edx - 0x10]
movsd qword [eax + edx - 0x10], xmm0
movsd xmm0, qword [ecx + edx - 8]
movsd qword [eax + edx - 8], xmm0
mov eax, dword [ebp - 0x30c]
cmp edi, dword [esi + 0x4970]
jle 0x460510
jmp 0x460556
mov dword [ebp - 0x30c], eax
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
movsd xmm0, qword [eax + 8]
mov eax, dword [ebp - 0x30c]
movsd qword [ecx + 0x28], xmm0
mov edx, dword [esi + 0x4970]
mov ecx, dword [esi + 0x14]
mov eax, dword [eax]
shl edx, 5
movsd xmm0, qword [edx + eax + 8]
movsd qword [ecx + 0x28], xmm0
mov eax, dword [ebp - 0x314]
add eax, 4
mov dword [ebp - 0x314], eax
cmp eax, dword [ebp - 0x310]
jne 0x4604d0
mov edi, dword [ebp - 0x320]
call fcn.0047c8e0
mov eax, dword [0x7c1d0c]
mov ecx, dword [eax + 0xd4]
mov edx, dword [eax + 0xd0]
mov eax, ecx
sub eax, edx
test eax, 0xfffffffc
je 0x46071f
xor esi, esi
cmp edx, ecx
je 0x46071f
mov edi, ecx
nop word [eax + eax]
mov eax, dword [edx]
lea ecx, [esi + 1]
cmp dword [eax + 0x4930], 6
cmovne ecx, esi
add edx, 4
mov esi, ecx
cmp edx, edi
jne 0x4605e0
mov edi, dword [ebp - 0x320]
test esi, esi
je 0x46071f
push 0x7c1d48
lea eax, [ebp - 0x308]
push str._sResultCraneSARD.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x308]
push 0x4a6fb8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x314], eax
test eax, eax
je 0x46071f
push esi
push 0x4a77cc
push eax
call fcn.00411e60
mov ecx, dword [0x7c1d0c]
add esp, 0xc
mov eax, dword [ecx + 0xd4]
mov esi, dword [ecx + 0xd0]
mov dword [ebp - 0x310], eax
cmp esi, eax
je 0x460710
mov edi, dword [ebp - 0x314]
nop word [eax + eax]
mov ecx, dword [esi]
cmp dword [ecx + 0x4930], 6
jne 0x4606ff
mov eax, dword [ecx + 0x14]
sub esp, 0x20
movsd xmm1, qword [ecx + 0x4938]
movsd xmm0, qword [ecx + 0x4998]
subsd xmm1, qword [eax + 0x68]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [ecx + 0x48d0]
mulsd xmm1, qword [0x4ae8b0]
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ecx + 0x48b8]
divsd xmm0, qword [0x4ae928]
movsd qword [ecx + 0x4990], xmm1
movsd qword [esp], xmm0
push dword [ecx + 0x4818]
push str._d__lf__lf__lf__lf_n
push edi
call fcn.00411e60
mov eax, dword [ebp - 0x310]
add esp, 0x2c
add esi, 4
cmp esi, eax
jne 0x460680
mov edi, dword [ebp - 0x320]
push dword [ebp - 0x314]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x7c1d34]
cmp dword [edi + 0xc], 0
jne 0x460732
push dword [0x7c1cf4]
jmp 0x460778
cmp dword [0x7c1d04], 1
je 0x460ae3
test eax, eax
jle 0x460772
dec eax
mov dword [edi + 0xc], 0
mov ecx, edi
mov dword [0x7c1d34], eax
call fcn.004375a0
mov ecx, edi
mov esi, eax
call fcn.00437680
cmp esi, 1
je 0x460a96
cmp eax, 1
je 0x460a96
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [0x7c1cfc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x460a96
push dword [0x7c1cfc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [0x7c1e60]
mov dword [edi + 0x248], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4607db
cmp dword [0x4b3920], 3
je 0x4607db
mov eax, dword [0x7c1d34]
push 0
inc eax
push eax
push 0x40b
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [edi + 0x248]
test ecx, ecx
jns 0x460816
add dword [0x7c1d34], ecx
jns 0x4607f7
mov dword [0x7c1d34], 0
mov ecx, edi
call fcn.0043ad70
test eax, eax
je 0x4608c6
mov eax, dword [0x7c1d34]
inc eax
mov dword [0x7c1d34], eax
jmp 0x460724
mov eax, dword [0x7c1d34]
cmp eax, dword [0x7c1e8c]
je 0x460aad
test cl, 0x20
je 0x46084c
call fcn.00493250
mov ecx, edi
call fcn.0043ad70
test eax, eax
je 0x460883
mov eax, dword [0x7c1d34]
inc eax
mov dword [0x7c1d34], eax
jmp 0x460724
cmp dword [0x7c1e58], 0
jne 0x460898
test cl, 0x10
je 0x46088d
push edi
mov dword [0x7c1e64], 0
call fcn.0048ba90
cmp dword [0x7c1e64], 0
je 0x460898
mov eax, dword [0x7c1d34]
inc eax
mov dword [0x7c1d34], eax
jmp 0x460724
push 1
push edi
call fcn.004791b0
jmp 0x4608c6
test cl, 4
je 0x460898
push edi
call fcn.0048b880
test byte [edi + 0x248], 2
je 0x4608a7
push edi
call fcn.00486490
test byte [edi + 0x248], 8
je 0x4608c6
push edi
call fcn.0048bd70
push 3
push edi
call fcn.0048c480
push 5
push edi
call fcn.0048c480
push ecx
mov ecx, edi
call fcn.004613c0
push ecx
mov ecx, edi
call fcn.004615f0
push edi
call fcn.0049cfe0
mov ecx, edi
call fcn.00438070
mov ecx, edi
call fcn.00438350
mov eax, dword [edi + 0xe0]
mov esi, dword [edi + 0xdc]
mov dword [ebp - 0x314], eax
sub eax, esi
test eax, 0xfffffffc
je 0x46094a
cmp esi, dword [ebp - 0x314]
je 0x46094a
nop dword [eax]
mov eax, dword [esi]
mov dword [ebp - 0x310], eax
cmp dword [eax + 0x4934], 1
jge 0x46093f
push dword [eax + 0x14]
mov ecx, edi
call fcn.0045c730
test eax, eax
je 0x46093f
mov eax, dword [ebp - 0x310]
mov dword [eax + 0x4934], 1
add esi, 4
cmp esi, dword [ebp - 0x314]
jne 0x460910
mov ecx, edi
call fcn.0044fc60
mov ecx, dword [edi + 0x158]
mov eax, dword [edi + 0x154]
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x30c], eax
cmp eax, ecx
je 0x460a96
mov edi, dword [eax]
mov eax, dword [edi + 0x2450]
test eax, eax
je 0x460a79
cmp dword [eax + 0x6c], 0xa
jne 0x460a79
cmp dword [eax + 0x58], 1
je 0x460a79
mov eax, dword [edi + 0x2458]
mov esi, dword [edi + 0x2454]
mov dword [ebp - 0x310], eax
cmp esi, eax
je 0x460a09
nop dword [eax + eax]
push 0
push 0x4b3a68
push 0x4b3b30
push 0
push dword [esi]
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x4609f8
cmp dword [eax + 0x49b8], 1
jne 0x4609f8
mov eax, dword [edi + 0x2450]
movsd xmm0, qword [0x4af858]
mov dword [eax + 0x58], 1
mov eax, dword [edi + 0x2450]
movsd qword [eax + 0x108], xmm0
add esi, 4
cmp esi, dword [ebp - 0x310]
jne 0x4609b0
mov ecx, dword [ebp - 0x314]
mov eax, dword [edi + 0x2470]
mov esi, dword [edi + 0x246c]
mov dword [ebp - 0x310], eax
cmp esi, eax
je 0x460a79
nop
push 0
push 0x4b3a68
push 0x4b3b30
push 0
push dword [esi]
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x460a68
cmp dword [eax + 0x49b8], 1
jne 0x460a68
mov eax, dword [edi + 0x2450]
movsd xmm0, qword [0x4af858]
mov dword [eax + 0x58], 1
mov eax, dword [edi + 0x2450]
movsd qword [eax + 0x108], xmm0
add esi, 4
cmp esi, dword [ebp - 0x310]
jne 0x460a20
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x30c]
add eax, 4
mov dword [ebp - 0x30c], eax
cmp eax, ecx
jne 0x460971
mov edi, dword [ebp - 0x320]
mov eax, dword [0x7c1d34]
inc eax
mov dword [0x7c1d34], eax
cmp eax, dword [0x7c1e8c]
jle 0x4601e2
push dword [0x7c1cf4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, edi
call fcn.0045fa90
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [edi + 0x40]
cmp eax, dword [edi + 0x44]
je 0x460aee
mov dword [edi + 0x44], eax
cmp dword [edi + 0x1a4], 0
jne 0x460db2
mov ecx, dword [edi + 0x5c]
mov eax, dword [edi + 0x58]
cmp eax, ecx
mov dword [ebp - 0x330], ecx
mov dword [ebp - 0x320], eax
je 0x460db2
mov eax, dword [eax]
movsd xmm2, qword [0x4afb90]
mov dword [ebp - 0x31c], eax
mov edx, dword [eax + 0x14]
test edx, edx
je 0x460b6f
movsd xmm1, qword [eax + 0x2410]
movsd xmm3, qword [0x4af380]
movaps xmm0, xmm1
subsd xmm0, qword [edx + 0x30]
andps xmm0, xmm2
comisd xmm3, xmm0
jbe 0x460b57
cmp dword [edx + 0x14], 0
jg 0x460d96
subsd xmm1, qword [edx + 0x38]
andps xmm1, xmm2
comisd xmm3, xmm1
jbe 0x460b6f
cmp dword [edx + 0x14], 0
jg 0x460d9f
push 0
push 0x4b3bcc
push 0x4b3b30
push 0
push eax
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x460d82
mov ecx, dword [eax + 0x485c]
mov eax, dword [eax + 0x4858]
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x318], eax
cmp eax, ecx
je 0x460d82
nop
mov eax, dword [eax]
mov dword [ebp - 0x30c], eax
mov edx, dword [eax + 0x49a0]
mov ecx, dword [eax + 0x499c]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x328], edx
mov dword [ebp - 0x314], ecx
test eax, 0xfffffffc
je 0x460d67
cmp ecx, edx
je 0x460d67
nop word [eax + eax]
mov eax, dword [ecx]
mov ecx, dword [eax + 0x485c]
mov esi, dword [eax + 0x4858]
mov dword [ebp - 0x310], ecx
cmp esi, ecx
je 0x460d50
nop dword [eax]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x4858]
movsd xmm0, qword [eax + 0x20]
comisd xmm0, xmmword [ecx + 0x4898]
jbe 0x460c4d
mov eax, dword [ebp - 0x30c]
mov dword [ecx + 0xc], 0x2bc
mov dword [eax + 0xc], 0x27
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 0x4818]
mov dword [edi + 0x1a4], eax
movsd xmm0, qword [ecx + 0x48e8]
movsd xmm1, qword [ecx + 0x4888]
comisd xmm1, xmm0
movsd xmm2, qword [0x4afb90]
movsd xmm3, qword [0x4ae8d8]
jae 0x460c80
subsd xmm0, xmm1
andps xmm0, xmm2
comisd xmm3, xmm0
jbe 0x460ca6
mov eax, dword [ebp - 0x30c]
mov dword [ecx + 0xc], 0x45
mov dword [eax + 0xc], 0x27
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 0x4818]
mov dword [edi + 0x1a4], eax
movsd xmm1, qword [ecx + 0x48e0]
movsd xmm0, qword [ecx + 0x4890]
comisd xmm1, xmm0
jae 0x460cc9
subsd xmm0, xmm1
andps xmm0, xmm2
comisd xmm3, xmm0
jbe 0x460cef
mov eax, dword [ebp - 0x30c]
mov dword [ecx + 0xc], 0x46
mov dword [eax + 0xc], 0x27
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 0x4818]
mov dword [edi + 0x1a4], eax
mov eax, dword [ecx + 0x4858]
movsd xmm0, qword [ecx + 0x4918]
movsd xmm1, qword [eax + 0x48]
comisd xmm0, xmm1
jae 0x460d15
subsd xmm0, xmm1
andps xmm0, xmm2
comisd xmm3, xmm0
jbe 0x460d3b
mov eax, dword [ebp - 0x30c]
mov dword [ecx + 0xc], 0x2b2
mov dword [eax + 0xc], 0x27
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 0x4818]
mov dword [edi + 0x1a4], eax
add esi, 4
cmp esi, dword [ebp - 0x310]
jne 0x460c10
mov edx, dword [ebp - 0x328]
mov ecx, dword [ebp - 0x314]
add ecx, 4
mov dword [ebp - 0x314], ecx
cmp ecx, edx
jne 0x460bf0
mov eax, dword [ebp - 0x318]
add eax, 4
mov dword [ebp - 0x318], eax
cmp eax, dword [ebp - 0x32c]
jne 0x460bb0
mov eax, dword [ebp - 0x320]
add eax, 4
cmp eax, dword [ebp - 0x330]
jmp 0x460b09
mov dword [edi + 0xc], 0x3e8
jmp 0x460da6
mov dword [edi + 0xc], 0x2710
mov eax, dword [eax + 0x4818]
mov dword [edi + 0x1a4], eax
push edi
call fcn.00421070
push edi
call fcn.00428140
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x7c1e60]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x460deb
push dword [0x7c1e64]
push dword [edi + 0xc]
push 0x40a
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a034d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret