Function at 0x443260
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x4b3008]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
push 0x7c1d48
lea eax, [esp + 0x164]
mov ebx, ecx
push str._sStop.dat
push eax
mov dword [esp + 0x30], ebx
call fcn.00404440
add esp, 0xc
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
nop
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
mov ecx, ebx
call fcn.00454e40
push ebx
call fcn.00421070
mov eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x44]
je 0x4432ce
mov dword [ebx + 0x44], eax
push ebx
call fcn.00428140
push 0x7c1d48
mov esi, eax
lea eax, [esp + 0x164]
push str._sBalance.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
test esi, esi
jne 0x44330d
push ebx
call fcn.00421ce0
jmp 0x443331
push 1
lea esi, [ebx + 0x1b0]
mov ecx, ebx
push esi
call fcn.00438d60
mov dword [ebx + 0x258], eax
test eax, eax
je 0x443331
push 2
push esi
mov ecx, ebx
call fcn.00438d60
push 0x7c1d48
lea eax, [esp + 0x64]
push str._sStop.dat
push eax
call fcn.00404440
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
lea eax, [esp + 0x6c]
add esp, 0xc
push 0x4a2694
push eax
call esi
add esp, 8
test eax, eax
jne 0x4436a4
push dword [0x7c1cf4]
mov dword [ebx + 0x19c], 2
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [0x7c1cfc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4432b6
push dword [0x7c1cfc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push ebx
call fcn.004791b0
push 0x7c1d48
lea eax, [esp + 0x64]
push str._sCalcPipeIdent.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [esp + 0x60]
push 0x4a2694
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x44347f
push esi
mov dword [esp + 0x10], 0
call edi
add esp, 4
test eax, eax
jne 0x443475
nop dword [eax + eax]
lea eax, [esp + 0x40]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x18]
push eax
push str._d_lf_lf_lf
push esi
call fcn.004043d0
mov eax, dword [esp + 0x24]
add esp, 0x18
test eax, eax
je 0x443475
push eax
mov ecx, ebx
call fcn.00438610
test eax, eax
je 0x443467
movsd xmm0, qword [esp + 0x30]
mov ecx, eax
movsd qword [eax + 0x48d8], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [eax + 0x48b0], xmm0
movsd xmm0, qword [esp + 0x40]
mulsd xmm0, qword [0x4ae928]
movsd qword [eax + 0x48c0], xmm0
call fcn.004722d0
push esi
call edi
add esp, 4
test eax, eax
je 0x4433f0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0x7c1d48
lea eax, [esp + 0x64]
push str._sCalcShopIdent.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [esp + 0x60]
push 0x4a2694
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
je 0x44357c
push esi
call edi
add esp, 4
test eax, eax
jne 0x443572
nop word [eax + eax]
lea eax, [esp + 0x50]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x1c]
push eax
push str._d_lf_lf
push esi
call fcn.004043d0
mov edi, dword [esp + 0x28]
add esp, 0x14
test edi, edi
je 0x443572
mov esi, dword [ebx + 0xe8]
mov ebx, dword [ebx + 0xec]
cmp esi, ebx
je 0x443558
nop dword [eax]
mov eax, dword [esi]
mov ecx, dword [eax + 0x4858]
mov edx, dword [eax + 0x485c]
cmp ecx, edx
je 0x443533
mov eax, dword [ecx]
cmp edi, dword [eax + 0x4818]
je 0x44353c
add ecx, 4
cmp ecx, edx
jne 0x443522
add esi, 4
cmp esi, ebx
jne 0x443510
jmp 0x443558
movsd xmm0, qword [esp + 0x48]
movsd qword [eax + 0x6ef8], xmm0
movsd xmm0, qword [esp + 0x50]
movsd qword [eax + 0x6f00], xmm0
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
mov ebx, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x4434d0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0x7c1d48
lea eax, [esp + 0x64]
push str._sCalcCraneIdent.dat
push eax
call fcn.00404440
add esp, 0xc
mov dword [esp + 0x10], 0
lea eax, [esp + 0x60]
push 0x4a2694
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4432b0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
jne 0x443698
nop word [eax + eax]
lea eax, [esp + 0x58]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
push str._d_lf_lf
push edi
call fcn.004043d0
mov edx, dword [esp + 0x24]
add esp, 0x14
test edx, edx
je 0x443698
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0xa4]
cmp eax, ecx
je 0x443686
mov esi, dword [eax]
cmp dword [esi + 0x4818], edx
je 0x443624
add eax, 4
cmp eax, ecx
jne 0x443611
jmp 0x443686
movsd xmm0, qword [esp + 0x58]
xorps xmm1, xmm1
movsd qword [esi + 0x48d0], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esi + 0x4920], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0x18], xmm0
divsd xmm0, qword [0x4af5d0]
ucomisd xmm1, xmm0
ja 0x443663
sqrtsd xmm0, xmm0
jmp 0x443668
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mulsd xmm0, qword [esi + 0x48c0]
movsd qword [esi + 0x48b8], xmm0
movsd xmm0, qword [esp + 0x18]
movsd qword [esi + 0x4900], xmm0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 4
test eax, eax
je 0x4435d0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x4432ab
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [esp + 0x268]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a034d
mov esp, ebp
pop ebp
ret