Function at 0x100016e0
Capabilities:
Get common file path
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001eec6
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100274a0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x100274a0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
xor ebx, ebx
push 0x104
lea eax, [esp + 0x61]
push ebx
push eax
mov byte [esp + 0x68], bl
call fcn.1000f770
add esp, 0xc
push 0x104
lea ecx, [esp + 0x60]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [esp + 0x40]
call fcn.10001110
mov edi, 0x10
mov dword [esp + 0x280], ebx
cmp dword [eax + 0x14], edi
jb 0x10001768
mov esi, dword [eax]
jmp 0x1000176a
mov esi, eax
mov eax, esi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001780
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.10001ef0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x30], edi
jae 0x100017a6
lea eax, [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 1
push 8
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x100017d2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 0x10
jb 0x100017e6
mov edx, dword [esp + 0x1c]
push edx
call fcn.100093a2
add esp, 4
mov esi, 0xf
mov dword [esp + 0x280], 0xffffffff
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x10001816
mov eax, dword [esp + 0x40]
push eax
call fcn.100093a2
add esp, 4
lea eax, [esp + 0x5c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001830
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.10001ef0
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
jae 0x1000185b
lea eax, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 1
push 8
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10001881
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 0x10
jb 0x10001895
mov edx, dword [esp + 0x1c]
push edx
call fcn.100093a2
add esp, 4
lea esi, [esp + 0x40]
call fcn.100011b0
mov edi, eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x280], 1
call fcn.10001110
mov esi, 0x10
cmp dword [edi + 0x14], esi
jb 0x100018c0
mov edi, dword [edi]
cmp dword [eax + 0x14], esi
jb 0x100018c7
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [esp + 0x30], esi
jb 0x100018e2
mov eax, dword [esp + 0x1c]
push eax
call fcn.100093a2
add esp, 4
mov edi, 0xf
mov dword [esp + 0x280], 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x54], esi
jb 0x10001911
mov ecx, dword [esp + 0x40]
push ecx
call fcn.100093a2
add esp, 4
push ebx
push 0x1c
lea edx, [esp + 0x16c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [esp + 0x14]
push eax
sub esp, 0x1c
mov ecx, esp
lea eax, [esp + 0x184]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov dword [esp + 0x34], esp
mov byte [ecx], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10001943
sub eax, esi
push eax
lea edx, [esp + 0x188]
push edx
call fcn.10001ef0
call fcn.10001420
mov eax, dword [esp + 0x38]
add esp, 0x20
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.C:WindowsTemp
mov byte [ecx], bl
call fcn.10001ef0
call fcn.10001420
add esp, 0x20
call fcn.10001610
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.100093ad
mov esp, ebp
pop ebp
ret