Function at 0x10765ce
Capabilities:
Move file
Read file on windows

Disassembly:
mov eax, 0x109a502
call fcn.01077478
mov eax, 0x1288
call fcn.01077530
mov eax, dword [0x10a64dc]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push edi
mov edi, ecx
mov dword [ebp - 0x1268], edi
mov ebx, 0x1007f1c
je 0x1076621
test byte [eax + 0x1c], 1
je 0x1076621
cmp byte [eax + 0x19], 5
jb 0x1076621
push edi
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
or dword [ebp - 0x1270], 0xffffffff
xor esi, esi
push 0x10a8b2c
lea ecx, [ebp - 0x1278]
mov dword [ebp - 0x1264], esi
call fcn.01020db5
mov dword [ebp - 4], esi
mov dword [ebp - 0x1284], esi
mov dword [ebp - 0x1288], esi
lea esi, [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x1076691
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x800700e8
mov dword [ebp - 0x1264], ecx
je 0x1076c1b
test byte [eax + 0x1c], 0x10
je 0x1076be1
cmp byte [eax + 0x19], 2
jb 0x1076be1
push edi
push ecx
push ebx
push 0x12
jmp 0x10766e7
push esi
lea ecx, [ebp - 0x1278]
call fcn.0100a6f4
push 0x1007f5c
lea ecx, [ebp - 0x1278]
call fcn.0100a88e
cmp dword [edi + 0x20], 1
je 0x10766f7
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
mov ecx, 0x800710d3
mov dword [ebp - 0x1264], ecx
je 0x1076c1b
test byte [eax + 0x1c], 0x10
je 0x1076be1
cmp byte [eax + 0x19], 2
jb 0x1076be1
push edi
push ecx
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ef6e
jmp 0x1076bdc
mov eax, dword [esi]
lea ecx, [ebp - 0x1260]
push ecx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x1076748
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x107674f
test byte [eax + 0x1c], 0x10
je 0x107674f
cmp byte [eax + 0x19], 4
jb 0x107674f
mov ecx, dword [esi]
push edi
push ecx
push dword [ebp - 0x1268]
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102eef0
jmp 0x107674f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 2
jne 0x10767a8
push dword [esi]
push dword [ebp - 0x1278]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10767a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x10767a8
test byte [eax + 0x1c], 0x10
je 0x10767a8
cmp byte [eax + 0x19], 4
jb 0x10767a8
mov ecx, dword [esi]
push edi
push ecx
push dword [ebp - 0x1278]
push dword [ebp - 0x1268]
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103aa19
jmp 0x10767a8
xor edi, edi
test edi, edi
jne 0x1076821
mov eax, dword [esi]
push edi
push 0x8000000
push 3
push edi
inc edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1270], eax
jne 0x1076819
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov dword [ebp - 0x1264], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x107682d
test byte [eax + 0x1c], 0x10
je 0x107682d
cmp byte [eax + 0x19], 4
jb 0x107682d
push dword [ebp - 0x1264]
mov ecx, dword [esi]
push ecx
push dword [ebp - 0x1268]
push ebx
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102eef0
jmp 0x107682d
mov dword [ebp - 0x1284], edi
jmp 0x107682d
push edi
call fcn.01009676
mov dword [ebp - 0x1264], eax
xor edi, edi
cmp dword [ebp - 0x1264], edi
jl 0x1076b40
push 0x10a8b2c
lea ecx, [ebp - 0x126c]
mov dword [ebp - 0x1290], edi
mov dword [ebp - 0x1274], edi
mov dword [ebp - 0x1294], edi
call fcn.01020db5
mov byte [ebp - 4], 1
lea edi, [ebp - 0x1274]
mov dword [ebp - 0x127c], 2
mov dword [ebp - 0x1280], 1
mov eax, dword [ebp - 0x1268]
push 0
mov dword [eax + 0x20], 2
lea eax, [ebp - 0x1294]
push eax
push dword [ebp - 0x127c]
push edi
push dword [ebp - 0x1270]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1076a82
mov eax, dword [ebp - 0x127c]
cmp eax, dword [ebp - 0x1294]
jne 0x1076acb
xor eax, eax
inc eax
cmp dword [ebp - 0x1280], eax
jne 0x1076968
mov edx, dword [ebp - 0x1274]
cmp dx, 0x1000
ja 0x10768f9
test al, dl
jne 0x10768f9
and dword [ebp - 0x1280], 0
movzx eax, dx
lea edi, [ebp - 0x1010]
mov dword [ebp - 0x127c], eax
jmp 0x1076a70
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1076931
test byte [eax + 0x1c], 0x10
je 0x1076931
cmp byte [eax + 0x19], 5
jb 0x1076931
mov ecx, dword [esi]
push 0x8007000d
push ecx
movzx ecx, dx
push ecx
push dword [ebp - 0x1268]
push ebx
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104a962
movzx eax, word [ebp - 0x1274]
push 1
push 0
push eax
push dword [ebp - 0x1270]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x107695c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1076ad4
and dword [ebp - 0x1264], 0
jmp 0x107687b
mov dword [ebp - 0x1280], eax
lea eax, [ebp - 0x1010]
lea edi, [ebp - 0x1274]
push eax
lea ecx, [ebp - 0x126c]
mov dword [ebp - 0x128c], edi
mov dword [ebp - 0x127c], 2
call fcn.0100a804
mov eax, dword [ebp - 0x126c]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x1076a70
dec eax
push eax
lea ecx, [ebp - 0x126c]
call fcn.0102108c
cmp ax, 0xa
jne 0x10769d0
mov eax, dword [ebp - 0x126c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x126c]
call fcn.01033901
cmp dword [ebp - 0x1290], 0
mov ecx, dword [ebp - 0x1268]
push dword [ebp - 0x126c]
jne 0x1076a0e
mov dword [ebp - 0x1290], 1
call fcn.01073ffc
test eax, eax
mov dword [ebp - 0x1264], eax
jl 0x1076b1d
mov dword [ebp - 0x1288], 1
jmp 0x1076a70
call fcn.010761b5
mov dword [ebp - 0x1264], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1076a70
test byte [eax + 0x1c], 0x10
je 0x1076a70
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x1264], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1076a6a
push dword [ebp - 0x1264]
push dword [ebp - 0x126c]
push dword [ebp - 0x1268]
push dword [ebp - 0x1264]
push ebx
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104a962
mov edi, dword [ebp - 0x128c]
cmp dword [ebp - 0x1264], 0
jge 0x107687b
jmp 0x1076b1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009676
mov dword [ebp - 0x1264], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1076b1d
test byte [eax + 0x1c], 0x10
je 0x1076b1d
cmp byte [eax + 0x19], 5
jb 0x1076b1d
push dword [ebp - 0x1264]
mov esi, dword [esi]
push esi
push dword [ebp - 0x1268]
push ebx
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102eef0
jmp 0x1076b1d
and dword [ebp - 0x1264], 0
jmp 0x1076b1d
push eax
call fcn.01009676
mov dword [ebp - 0x1264], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1076b1d
test byte [eax + 0x1c], 0x10
je 0x1076b1d
cmp byte [eax + 0x19], 5
jb 0x1076b1d
push dword [ebp - 0x1264]
mov esi, dword [esi]
movzx ecx, word [ebp - 0x1274]
push esi
push ecx
push dword [ebp - 0x1268]
push ebx
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104a962
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x1268]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0x126c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.01009cd1
xor edi, edi
cmp dword [ebp - 0x1284], 1
jne 0x1076b5e
cmp dword [ebp - 0x1270], 0xffffffff
je 0x1076b5e
push dword [ebp - 0x1270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1264], edi
mov esi, dword [ebp - 0x1268]
mov dword [esi + 0x20], 4
jge 0x1076b79
mov dword [ebp - 0x1264], edi
cmp dword [ebp - 0x1284], edi
je 0x1076b89
cmp dword [ebp - 0x1288], edi
jne 0x1076bdc
mov ecx, esi
call fcn.01074979
mov dword [ebp - 0x1264], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1076c1b
test byte [eax + 0x1c], 0x10
je 0x1076be1
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x1264], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1076be1
push dword [ebp - 0x1264]
push esi
push dword [ebp - 0x1264]
push ebx
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1076c1b
test byte [eax + 0x1c], 1
je 0x1076c1b
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 0x1264], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x1076c1b
push dword [ebp - 0x1264]
push ebx
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0x1278]
add ecx, 0xfffffff0
call fcn.01009cd1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1264]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01076f63
leave
ret