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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9c38
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x224], 0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x41bbc8
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41bbc8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00464a00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x41bbb4
push str.update_
add ebx, 0x38
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0041aeb0
add esp, 0xc
mov eax, dword [edi]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
push dword [eax - 0xc]
push eax
call fcn.0041b8a0
push dword [ebp - 0x21c]
call esi
or esi, 0xffffffff
test eax, eax
jne 0x41bb60
push 0x4c1144
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0041aeb0
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 2
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x41ba77
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x41ba8d
call fcn.0040c140
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41bbe6
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, dword [edi]
mov dword [ebp - 0x224], 1
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x220]
push ecx
push eax
call fcn.0041bda0
mov eax, dword [ebp - 0x220]
add esp, 0x14
mov ebx, dword [ebp - 0x21c]
add ebx, 0xfffffff0
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x41bb27
cmp dword [ebx + 0xc], 0
jl 0x41bb18
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x41bb18
push edi
call fcn.00401b10
add esp, 4
mov dword [ebp - 0x228], eax
mov ecx, esi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bb0d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x41bb27
push dword [eax - 0xc]
lea ecx, [ebp - 0x21c]
push eax
call fcn.0040c380
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41bb3f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41bb60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
push str.Copy_file_from__s_to__s__result___d
call fcn.0041f600
mov edx, dword [ebp - 0x21c]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41bbc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41bbc8
lea eax, [ebp - 0x218]
push eax
push str.File_Exists_:__s
call fcn.0041f600
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401af0
int3