Function at 0x1000c710
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x648
mov eax, dword [0x10025160]
xor eax, esp
mov dword [esp + 0x644], eax
mov eax, dword [esp + 0x658]
mov ecx, dword [esp + 0x800664]
push ebx
push ebp
mov ebp, dword [esp + 0x800664]
push esi
mov esi, dword [esp + 0x800658]
push edi
xor edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], 0xffffffff
xor eax, eax
jmp 0x1000c780
mov cl, byte [eax + 0x10026750]
mov byte [esp + eax + 0x150], cl
add eax, 1
test cl, cl
jne 0x1000c780
lea edx, [esp + 0x6060150]
push 0x5c
push edx
call fcn.1000ff1e
add esp, 8
cmp eax, edi
je 0x1000c7ad
mov byte [eax], 0
mov eax, dword [esp + 0x800664]
mov ebx, dword [esp + 0x660]
add eax, 0xffffffff
shr eax, 9
mov dword [esp + 0x38], eax
cmp ebx, eax
mov ecx, dword [esp + 0x24]
jae 0x1080cbea
mov al, byte [ebx + ebp + 1]
test al, 2
je 0x1000c7e1
test ecx, ecx
jne 0x1000cc46
or al, 2
mov byte [ebx + ebp + 1], al
push 0
push 0
lea eax, [ebx + 1]
shl eax, 9
push eax
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000c82f
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0x200
lea edx, [esp + 0x460]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000c82f
cmp dword [esp + 0x48], 0x200
je 0x1000c837
mov dword [esp + 0x10], 0x63000006
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x3c]
lea eax, [ebx + 1]
mov dword [ecx], eax
jne 0x1000cbfa
cmp dword [esp + 0x14], 0xffffffff
jne 0x7300c954
cmp dword [esp + 0x18], 0
je 0x1000c882
mov ebp, dword [esp + edi + 0x29c]
mov edx, dword [esp + edi + 0x254]
add ebp, 0x91
mov dword [esp + 0x18], 0
lea edi, [edi + ebp - 0x200]
jmp 0x1000c8cb
cmp edi, 0x8001b4
jbe 0x1000c8b5
push 0x200
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x25c]
push ecx
mov dword [esp + 0x24], 1
call fcn.10010420
mov ebp, dword [esp + 0x2c]
add esp, 0xc
jmp 0x1000c8d3
mov ebp, dword [esp + edi + 0x49c]
mov edx, dword [esp + edi + 0x454]
add ebp, 0x91
add edi, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edx
cmp ebp, 0x400
jle 0x1000c8e3
mov dword [esp + 0x34], 1
cmp dword [esp + 0x18], 0
jne 0x1000cbfa
lea eax, [esp + 0x4c]
push eax
push 0
push 0x1001f5a0
lea ecx, [esp + 0x15c]
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1000c921
mov dword [esp + 0x10], 5
jmp 0x1000cbfa
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x1000c963
mov dword [esp + 0x10], 5
jmp 0x7300cbfa
cmp edi, 0x200
jb 0x1000c976
sub edi, 0x200
jmp 0x1000cbfa
cmp dword [esp + 0x1c], 0
jne 0x1000cb47
cmp edi, 0x1f0
jae 0x1000cb47
mov eax, 4
mov ecx, 0x1001f5cc
lea edx, [esp + edi + 0x454]
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1000c9b8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1000c9a0
test eax, eax
je 0x1000ca15
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000ca07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000ca15
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000ca07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000ca15
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000ca07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000ca15
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x1000ca15
test esi, esi
mov eax, 1
jg 0x1000ca17
or eax, 0xffffffff
jmp 0x1000ca17
xor eax, eax
test eax, eax
je 0x1000cb43
mov eax, 4
mov ecx, str.JFIF
lea edx, [esp + edi + 0x45a]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1000ca48
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1000ca30
test eax, eax
je 0x1000caa5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000ca97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000caa5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000ca97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000caa5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000ca97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000caa5
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x1000caa5
test esi, esi
mov eax, 1
jg 0x1000caa7
or eax, 0xffffffff
jmp 0x1000caa7
xor eax, eax
test eax, eax
je 0x1000cb43
mov eax, 6
mov ecx, 0x1001f5bc
lea edx, [esp + edi + 0x45f]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1000cad8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1000cac0
test eax, eax
je 0x1000cb35
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000cb27
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000cb35
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000cb27
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000cb35
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x1000cb27
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000cb35
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x1000cb35
test esi, esi
mov eax, 1
jg 0x1000cb37
or eax, 0xffffffff
jmp 0x1000cb37
xor eax, eax
test eax, eax
je 0x1000cb43
mov dword [esp + 0x34], 1
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
sub esi, dword [esp + 0x1c]
sub esi, ebp
cmp esi, 0x200
jbe 0x1000cb5e
mov esi, 0x200
mov eax, 0x200
sub esi, edi
sub eax, edi
cmp esi, eax
ja 0x1000cc4d
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x48]
push ecx
push esi
lea edx, [esp + edi + 0x460]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000cb94
cmp dword [esp + 0x44], esi
je 0x1000cb9c
mov dword [esp + 0x10], 7
add dword [esp + 0x1c], esi
xor edi, edi
cmp dword [esp + 0x10], edi
jne 0x1000cbfa
mov ecx, dword [esp + 0x2c]
sub ecx, ebp
cmp dword [esp + 0x1c], ecx
jne 0x1000cbfa
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x18], 0xffffffff
call eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x24], edi
mov edi, esi
jmp 0x1000cc29
cmp dword [esp + 0x670], 0
je 0x1000cc1f
mov edx, dword [esp + 0x800664]
mov eax, dword [esp + 0x30]
push edx
push eax
push ebx
call dword [sym.imp.OleEngine.dll_unsigned_long_int___cdecl_OLENextBBEntry_unsigned_long_int__void___unsigned_long_int_]
add esp, 0xc
mov ebx, eax
jmp 0x1000cc22
add ebx, 1
cmp dword [esp + 0x10], 0
jne 0x1000cc98
cmp ebx, 0xfffffffd
jae 0x1000cc4d
cmp dword [esp + 0x34], 0
jne 0x1000cc4d
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
jmp 0x1000c7c5
cmp dword [esp + 0x10], 0
jne 0x1000cc98
cmp dword [esp + 0x670], 0
je 0x1000cc98
cmp ebx, 0xfffffffd
jae 0x1000cc98
lea esp, [esp]
cmp ebx, dword [esp + 0x38]
jae 0x1000cc98
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + ebx + 1]
test al, 2
jne 0x1000cc98
or al, 2
mov edx, ecx
mov ecx, dword [esp + 0x30]
mov byte [edx + ebx + 1], al
mov eax, dword [esp + 0x800664]
push eax
push ecx
push ebx
call dword [sym.imp.OleEngine.dll_unsigned_long_int___cdecl_OLENextBBEntry_unsigned_long_int__void___unsigned_long_int_]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xfffffffd
jb 0x1000cc60
cmp dword [esp + 0x14], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
je 0x1000ccb9
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp]
cmp eax, 1
jne 0x1000ccda
push eax
call fcn.1000bd70
push eax
call fcn.1000bd40
add esp, 8
push eax
push 2
call fcn.1000bd30
xor eax, eax
mov ecx, dword [esp + 0x644]
xor ecx, esp
call main
add esp, 0x648
ret