Function at 0x4683d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c930
mov eax, dword fs:[0]
push eax
mov eax, 0x3e28
call fcn.00480420
mov eax, dword [0x4c0e0c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3e28], esi
lea ecx, [ebp - 0x3e2c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp - 0x3e14]
mov dword [ebp - 4], 0
call dword [sym.imp.PMCORE.dll_public:_void___thiscall_PMCorePreferences::constructor_void_]
lea eax, [ebp - 0x3e14]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.PMCORE.dll_PMGetPreference]
mov ebx, dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_char_const__]
lea ecx, [ebp - 0x3e2c]
add esp, 4
test eax, eax
je 0x46845c
lea eax, [ebp - 0x3e04]
push eax
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AFilePath_const__]
jmp 0x468463
push str.Temp
call ebx
lea ecx, [ebp - 0x3e34]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
push dword [esi + 0xdc]
lea eax, [ebp - 0x3e34]
mov byte [ebp - 4], 2
push str._s.cut
push eax
call dword [sym.imp.FSUTIL.dll_public:_class_AString____cdecl_AString::Format_char_const__]
add esp, 0xc
lea eax, [ebp - 0x3e34]
lea ecx, [ebp - 0x3e2c]
push eax
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AString_const__]
push 0x49e340
push dword [ebp - 0x3e2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x468cb5
lea ecx, [ebp - 0x3e30]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp - 0x3e30]
mov byte [ebp - 4], 3
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetExecutableDir_void_]
push eax
lea ecx, [ebp - 0x3e30]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AFilePath_const__]
push str.Sample.cut
lea ecx, [ebp - 0x3e30]
call ebx
push 0x4a0e5c
push dword [ebp - 0x3e30]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x468ca9
push ebx
push 0x6c4
lea eax, [ebp - 0x2e0c]
xorps xmm0, xmm0
push 1
push eax
movsd qword [ebp - 0x3e24], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x46854b
push ebx
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call esi
push edi
call esi
jmp 0x468ca6
movsd xmm0, qword [esi + 0xb4]
mov eax, 1
subsd xmm0, qword [0x4978d8]
mov ecx, dword [esi + 0x484]
mov word [ebp - 0x2aaa], ax
addsd xmm0, qword [ebp - 0x2aec]
movsd qword [ebp - 0x2aec], xmm0
movsd xmm0, qword [esi + 0xac]
subsd xmm0, qword [0x4978d8]
addsd xmm0, qword [ebp - 0x2af4]
movsd qword [ebp - 0x2af4], xmm0
test ecx, ecx
je 0x46862e
mov esi, dword [sym.imp.PMCORE.dll_public:_struct_ASetupCommonRec____thiscall_ASetup::GetCommonRec_void_]
call esi
mov ecx, dword [ebp - 0x3e28]
movsd xmm0, qword [eax + 0xb0]
mov ecx, dword [ecx + 0x484]
movsd qword [ebp - 0x2ae4], xmm0
call esi
mov esi, dword [ebp - 0x3e28]
movsd xmm0, qword [eax + 0xb8]
mov ecx, dword [esi + 0x484]
movsd qword [ebp - 0x2adc], xmm0
mov eax, dword [ecx]
call dword [eax + 0x48]
lea edx, [ebp - 0x2aa0]
mov ecx, dword [eax + 0x168]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4685f8
mov ecx, dword [esi + 0x484]
mov eax, dword [ecx]
call dword [eax + 0x48]
lea edx, [ebp - 0x29a0]
mov ecx, dword [eax + 0x16c]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x468620
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [ebp - 0x2e0c]
push edi
push 0x6c4
push 1
push eax
call esi
add esp, 0x10
push ebx
cmp eax, 0x6c4
jne 0x46853b
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 2
jne 0x468c34
movsx eax, byte [ebp - 0x3e18]
dec eax
cmp eax, 0x2c
ja case.0x468689.6
movzx eax, byte [eax + 0x468d28]
jmp dword [eax*4 + 0x468cf8]
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
push ebx
cmp eax, 2
jb 0x46853b
push 0x28
lea eax, [ebp - 0x2748]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 0x28
jb 0x46853a
mov eax, dword [ebp - 0x3e28]
push edi
push 0x28
push 1
movsd xmm0, qword [eax + 0xac]
subsd xmm0, qword [0x4978d8]
addsd xmm0, qword [ebp - 0x2734]
movsd qword [ebp - 0x2734], xmm0
movsd xmm0, qword [eax + 0xb4]
lea eax, [ebp - 0x2748]
subsd xmm0, qword [0x4978d8]
push eax
addsd xmm0, qword [ebp - 0x272c]
movsd qword [ebp - 0x272c], xmm0
call esi
add esp, 0x10
cmp eax, 0x28
jmp 0x468c10
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
push ebx
cmp eax, 2
jb 0x46853b
push 0x308
lea eax, [ebp - 0x3114]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 0x308
jb 0x46853a
push edi
push 0x308
lea eax, [ebp - 0x3114]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 0x308
jmp 0x468c10
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
push ebx
cmp eax, 2
jb 0x46853b
push 0x18
lea eax, [ebp - 0x2720]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 0x18
jb 0x46853a
push edi
push 0x18
lea eax, [ebp - 0x2720]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 0x18
jmp 0x468c10
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 2
jb 0x46853a
cmp byte [ebp - 0x3e17], 0
mov dword [ebp - 0x3e1c], 0
jle case.0x468689.6
xor esi, esi
push ebx
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x46853a
push edi
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jb 0x46853a
inc esi
cmp esi, 2
jl 0x468806
mov ecx, dword [ebp - 0x3e1c]
movsx eax, byte [ebp - 0x3e17]
inc ecx
mov dword [ebp - 0x3e1c], ecx
cmp ecx, eax
jl 0x468804
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp case.0x468689.6
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 2
jb 0x46853a
xor ecx, ecx
mov dword [ebp - 0x3e1c], ecx
cmp byte [ebp - 0x3e17], cl
jle case.0x468689.6
nop dword [eax]
xor esi, esi
push ebx
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x46853a
mov eax, dword [ebp - 0x3e1c]
test eax, eax
jne 0x4688de
test esi, esi
jne 0x468927
mov eax, dword [ebp - 0x3e28]
movsd xmm0, qword [eax + 0xb4]
jmp 0x46890f
cmp eax, 1
jne 0x4688f7
mov eax, dword [ebp - 0x3e28]
test esi, esi
jne 0x468907
movsd xmm0, qword [eax + 0xb4]
jmp 0x46890f
cmp eax, 2
jne 0x468927
cmp esi, 1
jne 0x468927
mov eax, dword [ebp - 0x3e28]
movsd xmm0, qword [eax + 0xac]
subsd xmm0, qword [0x4978d8]
addsd xmm0, qword [ebp - 0x3e24]
movsd qword [ebp - 0x3e24], xmm0
push edi
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jb 0x46853a
inc esi
cmp esi, 2
jl 0x4688a2
mov ecx, dword [ebp - 0x3e1c]
movsx eax, byte [ebp - 0x3e17]
inc ecx
mov dword [ebp - 0x3e1c], ecx
cmp ecx, eax
jl 0x4688a0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp case.0x468689.6
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 2
jb 0x46853a
cmp byte [ebp - 0x3e17], 0
mov dword [ebp - 0x3e1c], 0
jle case.0x468689.6
xor esi, esi
nop dword [eax]
push ebx
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x46853a
push edi
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jb 0x46853a
inc esi
cmp esi, 8
jl 0x4689b0
mov ecx, dword [ebp - 0x3e1c]
movsx eax, byte [ebp - 0x3e17]
inc ecx
mov dword [ebp - 0x3e1c], ecx
cmp ecx, eax
jl 0x4689a7
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp case.0x468689.6
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 2
jb 0x46853a
mov dword [ebp - 0x3e1c], 0
nop dword [eax]
push ebx
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x46853a
push edi
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call esi
add esp, 0x10
cmp eax, 1
jb 0x46853a
mov eax, dword [ebp - 0x3e1c]
inc eax
mov dword [ebp - 0x3e1c], eax
cmp eax, 2
jl 0x468a40
cmp byte [ebp - 0x3e17], 0
mov dword [ebp - 0x3e1c], 0
jle case.0x468689.6
xor esi, esi
push ebx
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x46853a
push edi
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jb 0x46853a
inc esi
cmp esi, 6
jl 0x468aa3
mov ecx, dword [ebp - 0x3e1c]
movsx eax, byte [ebp - 0x3e17]
inc ecx
mov dword [ebp - 0x3e1c], ecx
cmp ecx, eax
jl 0x468aa1
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp case.0x468689.6
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 2
jb 0x46853a
cmp byte [ebp - 0x3e17], 0
mov dword [ebp - 0x3e1c], 0
jle case.0x468689.6
nop dword [eax]
xor esi, esi
push ebx
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jb 0x46853a
push edi
push 1
lea eax, [ebp - 0x3e24]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jb 0x46853a
inc esi
cmp esi, 5
jl 0x468b42
mov ecx, dword [ebp - 0x3e1c]
movsx eax, byte [ebp - 0x3e17]
inc ecx
mov dword [ebp - 0x3e1c], ecx
cmp ecx, eax
jl 0x468b40
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp case.0x468689.6
push ebx
push 4
lea eax, [ebp - 0x3e18]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 4
jb 0x46853a
mov esi, dword [ebp - 0x3e18]
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
add eax, esi
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0xc
jmp case.0x468689.6
push 1
push 0x100
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
jmp case.0x468689.6
push edi
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call esi
add esp, 0x10
cmp eax, 2
jb 0x46853a
push ebx
push 2
lea eax, [ebp - 0x3e18]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x468671
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push ebx
call esi
push edi
call esi
add esp, 8
call dword [sym.imp.PMCORE.dll_GetJobDatabase]
mov ecx, eax
test ecx, ecx
je 0x468ca9
mov eax, dword [ebp - 0x3e28]
push 0
push 0
push 1
push 0
push 0
push dword [eax + 0xdc]
push dword [ebp - 0x3e2c]
call dword [sym.imp.PMCORE.dll_public:_class_AJob____thiscall_AJobDatabase::AddaJob_char_const___char_const___int__int__int__class_AString_const___int_]
mov esi, eax
test esi, esi
je 0x468ca9
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
mov edi, dword [esi + 0x134]
test eax, eax
jne 0x468c93
push 1
push edi
call dword [sym.imp.PMCORE.dll_PMDeleteJob]
jmp 0x468ca6
push 0
mov ecx, esi
call dword [sym.imp.PMCORE.dll_public:_void___thiscall_AJob::SetCutterDoOutputCompensation_int_]
push 2
push edi
call dword [sym.imp.PMCORE.dll_PMStartJob]
add esp, 8
lea ecx, [ebp - 0x3e30]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0x3e34]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
lea ecx, [ebp - 0x3e14]
call dword [sym.imp.PMCORE.dll_public:_void___thiscall_PMCorePreferences::destructor_void_]
lea ecx, [ebp - 0x3e2c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ff18
mov esp, ebp
pop ebp
ret