Function at 0x401a3d
Capabilities:
Check if file exists
Copy file

Disassembly:
mov eax, 0x410161
call fcn.00408c5c
sub esp, 0x280
mov eax, dword [0x415138]
push ebx
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x23c]
push edi
push eax
call fcn.00406597
pop ecx
lea eax, [ebp - 0x23c]
xor esi, esi
push eax
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], esi
call fcn.004013be
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 1
call fcn.00403136
push str..exe
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 2
call fcn.0040129e
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x248]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x254], esp
push eax
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 3
call fcn.00403645
lea eax, [ebp - 0x24c]
push eax
call fcn.004069f2
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004017b2
push eax
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 5
call fcn.004063ac
pop ecx
pop ecx
mov ecx, dword [ebp - 0x248]
cmp ecx, esi
je 0x401b07
call fcn.004013dd
mov dword [ebp - 0x248], esi
mov ecx, dword [ebp - 0x24c]
cmp ecx, esi
je 0x401b1c
call fcn.004013dd
mov dword [ebp - 0x24c], esi
mov ecx, dword [ebp - 0x244]
cmp ecx, esi
je 0x401b2b
call fcn.004013dd
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.004013a2
mov ecx, dword [ebp - 0x238]
cmp ecx, esi
mov byte [ebp - 4], 0xa
je 0x401b50
call fcn.004010b7
jmp 0x401b52
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401bc7
mov ecx, dword [ebp - 0x238]
cmp ecx, esi
je 0x401b6e
call fcn.004010b7
jmp 0x401b70
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401a20
mov ecx, dword [ebp - 0x238]
cmp ecx, esi
je 0x401b8a
call fcn.004010b7
jmp 0x401b8c
xor eax, eax
lea ecx, [ebp - 0x254]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
je 0x401bc7
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040140a
cmp al, 1
pop ecx
pop ecx
jne 0x401bc7
mov ecx, dword [ebp - 0x238]
cmp ecx, esi
je 0x401bbe
call fcn.004010b7
jmp 0x401bc0
xor eax, eax
push eax
call fcn.0040fd46
pop ecx
mov ecx, dword [ebp - 0x238]
cmp ecx, esi
je 0x401bda
call fcn.004010b7
mov edi, eax
jmp 0x401bdc
xor edi, edi
mov ecx, dword [ebp - 0x23c]
cmp ecx, esi
je 0x401bed
call fcn.004010b7
jmp 0x401bef
xor eax, eax
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x401c55
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x240]
call fcn.004016cd
lea eax, [ebp - 0x240]
push eax
call fcn.004069db
pop ecx
lea ecx, [ebp - 0x274]
call fcn.00403136
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xb
call fcn.004040cc
mov ecx, dword [ebp - 0x240]
cmp ecx, esi
je 0x401cf8
call fcn.004010b7
jmp 0x401cfa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x23c]
cmp ecx, esi
mov ebx, eax
je 0x401c6e
call fcn.004010b7
jmp 0x401c70
xor eax, eax
push 0x208
lea ecx, [ebp - 0x234]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
push str.wininit.ini
lea eax, [ebp - 0x234]
push eax
push 0x411388
push str.Rename
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, esi
je 0x401cd9
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x401cd9
mov ecx, dword [ebp - 0x23c]
cmp ecx, esi
je 0x401cd1
call fcn.004010b7
jmp 0x401cd3
xor eax, eax
push 4
push esi
push eax
call edi
push 1
push ebx
push ecx
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
call fcn.004013be
push 7
call fcn.00405f34
xor eax, eax
push esi
push esi
push 3
push esi
push esi
push 0x100
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
push esi
lea eax, [ebp - 0x25c]
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
mov eax, dword [0x415b04]
cmp eax, esi
je 0x401d39
push eax
call edi
mov dword [0x415b04], esi
mov dword [ebp - 0x250], esi
push 0x411360
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xc
call fcn.0040129e
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x24c]
push str._rn__
push eax
mov byte [ebp - 4], 0xd
call fcn.00401802
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x244]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.004017b2
push eax
lea ecx, [ebp - 0x250]
call fcn.004016cd
mov ecx, dword [ebp - 0x244]
cmp ecx, esi
je 0x401dac
call fcn.004013dd
mov dword [ebp - 0x244], esi
mov ecx, dword [ebp - 0x24c]
cmp ecx, esi
je 0x401dc1
call fcn.004013dd
mov dword [ebp - 0x24c], esi
mov ecx, dword [ebp - 0x248]
cmp ecx, esi
mov byte [ebp - 4], 0xc
je 0x401dd4
call fcn.004013dd
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004065fe
pop ecx
pop ecx
push eax
call edi
mov ecx, dword [ebp - 0x250]
cmp ecx, esi
je 0x401e01
call fcn.004013dd
mov dword [ebp - 0x250], esi
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xa
call fcn.0040360d
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014b0
mov ecx, dword [ebp - 0x238]
cmp ecx, esi
je 0x401e30
call fcn.004013dd
mov dword [ebp - 0x238], esi
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 1
call fcn.0040360d
mov ecx, dword [ebp - 0x240]
cmp ecx, esi
je 0x401e54
call fcn.004013dd
mov dword [ebp - 0x240], esi
mov ecx, dword [ebp - 0x23c]
cmp ecx, esi
je 0x401e63
call fcn.004013dd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00407ea0
pop edi
pop esi
pop ebx
leave
ret