Function at 0x10109740
Capabilities:
Delete file
Get file size
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101ec0b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x102834e0], ebp
call ebx
mov esi, dword [esp + 0x34]
mov dword [0x102834e8], eax
cmp esi, ebp
je 0x10109a7e
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x10109a7e
cmp dword [0x102834ec], ebp
jne 0x101097b0
mov dword [0x102834e0], 2
mov dword [0x102834e4], 0x2627
jmp 0x10109a92
push esi
lea ecx, [esp + 0x1c]
call fcn.100f17e0
push esi
mov dword [esp + 0x30], ebp
call fcn.100f0a90
add esp, 4
cmp eax, ebp
je 0x101097f1
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100f1880
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebp
push ebp
push 3
push ebp
push 1
push 0xc0000000
push esi
call fcn.100f2690
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x1010983a
mov dword [0x102834e0], 4
mov dword [0x102834e4], 0x264e
call ebx
lea ecx, [esp + 0x18]
mov dword [0x102834e8], eax
mov dword [esp + 0x2c], edi
call fcn.100f1880
jmp 0x10109a99
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.10077860
mov ecx, dword [0x10283a20]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x1026c0d4
push esi
mov byte [esp + 0x3c], 1
call fcn.100f2360
add esp, 0x10
test eax, eax
jne 0x101098be
mov dword [0x102834e0], 0x24
mov dword [0x102834e4], 0x265b
call ebx
lea ecx, [esp + 0x10]
mov dword [0x102834e8], eax
mov byte [esp + 0x2c], 0
call fcn.10078300
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100f1880
jmp 0x10109a99
mov edx, dword [esp + 0x40]
xor eax, eax
test edx, edx
setne al
test eax, eax
mov dword [esp + 0x40], eax
je 0x101098e1
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x101098e1
test ebp, ebp
jne 0x101098e1
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push edx
push 0
push 0
mov ebp, 1
push 0
push eax
push ebp
push ecx
push esi
call fcn.10107ef0
add esp, 0x2c
test eax, eax
jne 0x10109a0a
lea ecx, [esp + 0x34]
call fcn.10077860
mov edx, dword [0x10283a20]
lea eax, [esp + 0x34]
push edx
push eax
push 0x1026be1c
push esi
mov byte [esp + 0x3c], 2
call fcn.100f2360
add esp, 0x10
test eax, eax
je 0x10109a11
mov ecx, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
push ecx
push esi
call edi
test eax, eax
je 0x101099ed
mov edx, dword [esp + 0x10]
push 3
push esi
push edx
call edi
test eax, eax
je 0x101099b1
mov eax, dword [esp + 0x40]
xor ebp, ebp
test eax, eax
je 0x1010998c
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x34]
push eax
call fcn.100784b0
jmp 0x10109a31
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10109a31
mov edx, dword [esp + 0x34]
push edx
call fcn.100f2170
add esp, 4
jmp 0x10109a31
mov dword [0x102834e0], 0x27
mov dword [0x102834e4], 0x2696
call ebx
mov dword [0x102834e8], eax
mov eax, dword [esp + 0x34]
push 3
push esi
push eax
call edi
test eax, eax
jne 0x10109a31
lea ecx, [esp + 0x34]
or ebp, 0xffffffff
push ecx
mov ecx, dword [esp + 0x40]
call fcn.100784b0
jmp 0x10109a31
mov dword [0x102834e0], 0x28
mov dword [0x102834e4], 0x26a5
call ebx
mov dword [0x102834e8], eax
jmp 0x10109a31
mov ebp, 1
jmp 0x10109a4a
mov dword [0x102834e0], 0x24
mov dword [0x102834e4], 0x2678
call ebx
mov dword [0x102834e8], eax
mov ebp, 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.10078300
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.10078300
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100f1880
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2620
call ebx
mov dword [0x102834e8], eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret