Function at 0x10007150
Capabilities:
Delete file
Get common file path
Get file size
Move file

Disassembly:
sub esp, 0x34c
xor ecx, ecx
mov edx, str._rename__r_n
push ebx
mov dword [esp + 0x24], ecx
push esi
lea esi, [esp + 0x3c]
push edi
push ebp
mov eax, dword [edx]
mov bp, word [edx + 8]
mov ebx, dword [edx + 4]
mov dword [esi], eax
mov al, byte [edx + 0xa]
mov dword [esi + 4], ebx
mov edx, dword [str._lfn__r_n]
mov word [esi + 8], bp
mov dword [esp + 0x14], ecx
mov byte [esi + 0xa], al
mov byte [esp + 0x50], cl
mov eax, str._lfn__r_n
lea esi, [esp + 0x34]
mov byte [esp + 0x154], cl
mov eax, dword [eax + 4]
mov dword [esi], edx
mov dword [esi + 4], eax
mov esi, dword [esp + 0x360]
cmp esi, ecx
je 0x100071c3
lea eax, [esp + 0x154]
push eax
push esi
call fcn.10018bb0
add esp, 8
mov edi, dword [esp + 0x364]
test edi, edi
je 0x100071dc
lea eax, [esp + 0x50]
push eax
push edi
call fcn.10018bb0
add esp, 8
lea eax, [esp + 0x154]
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x3c]
push eax
push 0x1c
call fcn.1001be50
add esp, 8
push 0x1002f1f8
push eax
call fcn.10027fe0
add esp, 8
test eax, eax
jne 0x1000721d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
cmp word [0x1002aba0], 0
jne 0x1000722c
call fcn.10018530
test edi, edi
je 0x1000723b
push 1
push edi
call fcn.100185b0
add esp, 8
cmp dword [0x100307cc], 0
mov word [0x1002aba0], 1
je 0x10007254
mov eax, dword [0x100307d0]
jmp 0x10007259
call fcn.100188c0
test eax, eax
jne 0x100072ab
lea eax, [esp + 0x154]
push eax
push esi
call fcn.10018bb0
add esp, 8
test edi, edi
je 0x10007297
lea eax, [esp + 0x50]
push eax
push edi
call fcn.10018bb0
lea eax, [esp + 0x58]
lea ecx, [esp + 0x15c]
add esp, 8
push 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x100072b5
lea eax, [esp + 0x154]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x100072b5
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100072c6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100072e4
pop ebp
cmp edi, 1
sbb eax, eax
pop edi
inc eax
pop esi
pop ebx
add esp, 0x34c
ret
push 0x400
call fcn.1001c8a0
mov dword [esp + 0x14], eax
add esp, 4
push 0x400
call fcn.1001c8a0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x54]
add esp, 4
push eax
push esi
call fcn.10018bb0
lea ecx, [esp + 0x15c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
lea edx, [esp + 0x58]
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push eax
push ecx
push 0x104
push edx
call ebx
lea ecx, [esp + 0x154]
push 0x104
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x15c]
push ecx
call esi
lea ecx, [esp + 0x154]
test edi, edi
mov dword [esp + 0x1c], ecx
je 0x100073b0
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.10018bb0
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x18]
add esp, 8
push eax
push ecx
push 0x104
push edx
call ebx
lea ecx, [esp + 0x258]
push 0x104
lea edx, [esp + 0x54]
push ecx
push edx
call esi
lea ecx, [esp + 0x50]
lea esi, [esp + 0x258]
mov dword [esp + 0x20], ecx
jmp 0x100073bd
mov dword [esp + 0x20], 0
mov esi, 0x1002f200
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._hs_hs_r_n
push ecx
call edi
add esp, 0x10
cmp dword [esp + 0x20], 0
je 0x1000743e
mov eax, dword [esp + 0x20]
push esi
mov ecx, dword [esp + 0x1c]
push eax
push str.__hs___hs__r_n
push ecx
call edi
mov ecx, dword [esp + 0x30]
add esp, 0x10
push 0x5c
push ecx
call fcn.1001fdec
mov dword [esp + 0x24], eax
add esp, 8
test eax, eax
je 0x1000740f
mov dword [esp + 0x20], eax
push 0x5c
push esi
call fcn.1001fdec
mov dword [esp + 0x24], eax
add esp, 8
test eax, eax
je 0x10007424
mov esi, eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.10027fe0
add esp, 8
test eax, eax
je 0x1000743e
mov dword [esp + 0x30], 1
push 0x105
call fcn.1001c8a0
mov edi, eax
add esp, 4
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, str.WinInit.Ini
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov dword [edi], eax
push 0
mov ecx, dword [edx + 4]
push 0x8000080
push 4
mov dword [edi + 4], ecx
mov ebx, dword [edx + 8]
push 0
push 0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0xc0000000
mov dword [edi + 8], ebx
mov al, byte [edx + 0xc]
push esi
mov byte [edi + 0xc], al
call ebp
mov dword [esp + 0x24], eax
push esi
call fcn.1001c930
add esp, 4
cmp dword [esp + 0x24], 0xffffffff
jne 0x100074d9
mov eax, dword [esp + 0x18]
push eax
call fcn.1001c930
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.1001c930
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
mov eax, dword [esp + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x30], 0
mov ebx, eax
je 0x10007503
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx + 7]
jmp 0x10007505
xor edx, edx
mov edi, dword [esp + 0x10]
push 0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + ebx - 1]
mov ecx, dword [esp + 0x28]
add eax, edx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
add eax, 0xb
push eax
push 0
push 4
push 0
push ecx
call ebp
mov dword [esp + 0x2c], eax
test eax, eax
je 0x100077b3
push 0
mov ebp, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 0
push 2
push eax
call ebp
mov dword [esp + 0x28], eax
test eax, eax
je 0x10007797
mov ebp, eax
mov byte [ebx + eax], 0
cmp byte [ebp], 0
je 0x100075a2
push 0x1002f230
push ebp
call fcn.1001fdb0
add esp, 8
add ebp, eax
lea eax, [esp + 0x44]
push 0xa
push eax
push ebp
call fcn.10028c78
add esp, 0xc
test eax, eax
jne 0x10007594
mov dword [esp + 0x14], 1
cmp byte [ebp], 0
je 0x1000759b
inc ebp
cmp dword [esp + 0x14], 0
je 0x10007562
cmp dword [esp + 0x14], 0
jne 0x10007605
lea edi, [esp + 0x44]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x10]
sub eax, eax
lea ebx, [ecx + ebx + 9]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp + 0xa]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10007673
inc ebp
push 0x1002f234
push ebp
call fcn.1001fdb0
add esp, 8
add ebp, eax
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x10]
sub eax, eax
not ecx
push ecx
push ebp
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + ebp - 1]
push eax
call fcn.1001fc28
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x10]
push ecx
push eax
push ebp
call fcn.1001fc28
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx + ebx - 1]
cmp dword [esp + 0x30], 0
je 0x10007797
mov eax, dword [esp + 0x28]
xor esi, esi
mov ebp, eax
mov byte [ebx + eax], 0
cmp byte [ebp], 0
je 0x100076c4
push 0x1002f238
push ebp
call fcn.1001fdb0
add esp, 8
add ebp, eax
lea eax, [esp + 0x34]
push 7
push eax
push ebp
call fcn.10028c78
add esp, 0xc
test eax, eax
jne 0x100076b9
mov esi, 1
cmp byte [ebp], 0
je 0x100076c0
inc ebp
test esi, esi
je 0x1000768a
test esi, esi
jne 0x10007724
lea edi, [esp + 0x34]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x18]
sub eax, eax
lea ebx, [ecx + ebx + 6]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp + 7]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10007792
inc ebp
push 0x1002f23c
push ebp
call fcn.1001fdb0
add esp, 8
add ebp, eax
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
sub eax, eax
not ecx
push ecx
push ebp
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + ebp - 1]
push eax
call fcn.1001fc28
mov edi, dword [esp + 0x24]
add esp, 0xc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x18]
push ecx
push eax
push ebp
call fcn.1001fc28
mov edi, dword [esp + 0x24]
add esp, 0xc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx + ebx - 1]
call fcn.10007810
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push eax
call ebp
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
jmp 0x100077b9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1001c930
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.1001c930
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34c
ret