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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x18006af78]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea eax, [rcx + 0x960]
mov r13, r9
mov dword [rsp + 0x40], eax
mov r15, r8
mov ebx, dword [rsp + 0x40]
mov r14, rdx
mov ebp, ecx
cmp ecx, eax
jae 0x1800040da
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x58]
xor esi, esi
cmp ebp, 0x2a4
ja 0x180003faf
je 0x180003f7e
cmp ebp, 0x178
ja 0x180003e4a
je 0x180003dfd
mov eax, ebp
sub eax, 0x4c
je 0x180003dee
sub eax, 0x59
je 0x180003dde
sub eax, 0x3d
je 0x180003dbd
cmp eax, 0x59
jne 0x1800040ca
cmp dword [r15], 1
jle 0x180003d9a
mov esi, 0x40
nop
mov eax, esi
sub eax, 0x3f
je 0x180003d32
cmp eax, 1
jne 0x180003d8f
mov rcx, qword [r14 + 8]
lea rdx, [0x1800604d8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r12, rax
jmp 0x180003d8f
test r12, r12
jne 0x180003d8f
mov edi, 0x6c
nop dword [rax]
mov eax, edi
sub eax, 0x6c
je 0x180003d52
cmp eax, 1
je 0x1800040da
jmp 0x180003d88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [r14]
lea rdx, str._IpcMessageHandlerClass::OnSyncLoad
mov rcx, rax
mov r9, rbx
call fcn.18005c9f0
mov ebx, 1
inc edi
cmp edi, 0x6e
jb 0x180003d40
dec esi
cmp esi, 0x3e
ja 0x180003d10
xor edx, edx
mov qword [rsp + 0x38], 0x400
mov r8d, 0x10a
lea rcx, [rsp + 0x38]
call fcn.180034770
mov rdi, rax
jmp 0x1800040ca
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r14 + r8], 0
jne 0x180003dc4
mov rdx, r14
mov rcx, r15
call fcn.1800254f0
jmp 0x1800040ca
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r12, rax
jmp 0x1800040ca
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x58], rsi
jmp 0x1800040ca
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
cmp rcx, rdx
jae 0x180003e2e
lea rax, [rcx + 1]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp rdx, 0x10
jb 0x180003e1e
mov rax, qword [r15]
mov word [rax + rcx], 0x3a
mov qword [rsp + 0x68], rsi
jmp 0x1800040ca
xor r8d, r8d
mov r9b, 0x3a
mov rcx, r15
lea edx, [r8 + 1]
call fcn.180002200
mov qword [rsp + 0x68], rsi
jmp 0x1800040ca
mov eax, ebp
sub eax, 0x1d1
je 0x180003ef3
sub eax, 0x3d
je 0x180003ea0
cmp eax, 0x59
jne 0x1800040ca
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp r12, rax
je 0x180003e7b
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edx, edx
mov qword [rsp + 0x38], 0x40
mov r8d, 0x10a
lea rcx, [rsp + 0x38]
call fcn.180034770
mov qword [rsp + 0x50], rax
jmp 0x1800040ca
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
cmp rcx, rdx
jae 0x180003ed4
lea rax, [rcx + 1]
mov qword [r15 + 0x10], rax
mov rax, r15
cmp rdx, 0x10
jb 0x180003ec1
mov rax, qword [r15]
mov word [rax + rcx], 0x20
mov dword [rsp + 0x44], 0x104
jmp 0x1800040ca
xor r8d, r8d
mov r9b, 0x20
mov rcx, r15
lea edx, [r8 + 1]
call fcn.180002200
mov dword [rsp + 0x44], 0x104
jmp 0x1800040ca
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], 0x400
mov edx, reloc.SHELL32.dll_ILFindLastID
mov rcx, rdi
call fcn.180026820
mov rcx, qword [rdi + 8]
mov r9, r12
mov r8, qword [rdi + 0x10]
mov edx, 1
sub r8, rcx
add rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x1800040ca
add qword [rdi + 8], rax
lea r8, [rsp + 0x38]
mov rax, qword [rdi + 8]
mov edx, reloc.SHELL32.dll_ILFindLastID
add rax, 0x400
mov rcx, rdi
mov qword [rsp + 0x38], rax
call fcn.180026820
mov rcx, qword [rdi + 8]
mov r9, r12
mov r8, qword [rdi + 0x10]
mov edx, 1
sub r8, rcx
add rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x180003f33
jmp 0x1800040ca
mov eax, dword [rsp + 0x44]
lea r9, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], eax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call sub.SHELL32.dll_SHGetUnreadMailCountW
mov dword [rsp + 0x48], eax
jmp 0x1800040ca
cmp ebp, 0x3d0
ja 0x18000407a
je 0x180004052
mov eax, ebp
sub eax, 0x2fd
je 0x180004030
sub eax, 0x3d
je 0x18000400f
cmp eax, 0x59
jne 0x1800040ca
lea ecx, [rax - 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, qword [rsp + 0x50]
mov edx, 1
mov r9, rax
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r8, rdi
mov edx, 0x138
xor ecx, ecx
call fcn.18004d910
jmp 0x1800040ca
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + r13], 0
jne 0x180004016
mov rdx, r13
mov rcx, r15
call fcn.1800254f0
jmp 0x1800040ca
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x38]
mov r9, qword [rdi]
mov edx, PathMakeUniqueName
mov r8, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
call fcn.18003a9f0
jmp 0x1800040ca
cmp dword [rsp + 0x48], 0
mov ecx, esi
movzx eax, byte [rsp + 0x30]
cmove ecx, eax
mov byte [rsp + 0x30], cl
cmp cl, 0
je 0x1800040ca
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHSetUnreadMailCountW
jmp 0x1800040ca
mov eax, ebp
sub eax, 0x429
je 0x1800040b7
sub eax, 0x3d
je 0x18000408f
cmp eax, 0x59
je 0x1800040da
jmp 0x1800040ca
cmp qword [0x180069758], 0x10
lea rdx, [0x180069740]
mov r8, qword [0x180069750]
mov rcx, r15
cmovae rdx, qword [0x180069740]
call fcn.1800254f0
jmp 0x1800040ca
mov r8, qword [rsp + 0x50]
mov edx, 0x138
xor ecx, ecx
call fcn.18004d910
mov ebx, esi
add ebp, 0x96
cmp ebp, dword [rsp + 0x40]
jb 0x180003cb4
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18005d0c0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret