Function at 0x403ea0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f7ca
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x43f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x404111
lea eax, ds:[ebp - 0x218]
push eax
lea ecx, [ebp - 0x46c]
call fcn.004050c0
push str.gta_sa
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004072c0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x458]
cmp ecx, 8
jb 0x403f68
mov edx, dword ds:[ebp - 0x46c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404152
push ecx
push edx
call fcn.004149b5
add esp, 8
xor eax, eax
mov dword [ebp - 0x45c], 0
cmp dword [ebp - 0x424], 8
mov word [ebp - 0x46c], ax
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push 0
push eax
mov dword [ebp - 0x458], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403fdf
call esi
cmp eax, 0xb7
je 0x403fdf
call esi
push eax
push ecx
mov edx, 0x439c40
call fcn.00406f40
add esp, 4
mov ecx, eax
call fcn.00404c00
push eax
call fcn.00407220
add esp, 4
jmp 0x4040d3
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x428]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xb
jb 0x404157
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 0xb
cmovae eax, dword [ebp - 0x438]
push str.gta_sa.exe
push ecx
push eax
push ecx
push dword [ebp - 0x454]
lea ecx, [ebp - 0x450]
call fcn.004094c0
mov byte ds:[ebp - 4], 3
lea eax, [ebp - 0x450]
cmp dword [ebp - 0x43c], 8
push 0
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40408e
call esi
push eax
push ecx
mov edx, 0x439bfc
call fcn.00406f40
add esp, 4
mov ecx, eax
call fcn.00404c00
push eax
call fcn.00407220
add esp, 4
mov ecx, dword [ebp - 0x43c]
cmp ecx, 8
jb 0x4040d3
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4040c9
mov edx, dword ds:[eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40415c
push ecx
push edx
call fcn.004149b5
add esp, 8
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x404138
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404105
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404165
push ecx
push edx
call fcn.004149b5
add esp, 8
jmp 0x404138
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x439c88
call fcn.00406f40
add esp, 4
mov ecx, eax
call fcn.00404c00
push eax
call fcn.00407220
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041460c
mov esp, ebp
pop ebp
ret
call fcn.0041a6f1
call fcn.00402400
nop dword [eax]
call fcn.0041a6f1
call fcn.0041a6f1
int3