Function at 0x428ee0
Capabilities:
Check if file exists
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b5eb
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00416880
xor ebx, ebx
lea edi, [esp + 0x18]
mov dword [esp + 0xc0], ebx
call fcn.004096d0
push 0x54
call fcn.00416550
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x4bd868
call fcn.00408fb0
xor edi, edi
mov dword [esp + 0x1c], edi
push ebx
push 0x80
push 2
push ebx
push 1
mov byte [esp + 0xd4], 2
mov eax, dword [esp + 0x34]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x428f95
call fcn.004164a0
cmp eax, ebx
jge 0x428f9b
mov byte [esp + 0xc0], bl
jmp 0x429256
mov dword [esp + 0x1c], eax
mov edi, eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x428fb9
call fcn.004164a0
cmp edi, ebx
je 0x428fc8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], ebx
mov edx, dword [0x4bb38c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4bb38c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], 3
mov ebx, dword [esi + 0xc]
push 0x4bd8d0
push ecx
call fcn.00409750
add esp, 8
lea edi, [esp + 0x28]
mov byte [esp + 0xc0], 4
call fcn.0040b8a0
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x429035
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429067
lea ecx, [esp + 0x2c]
push ecx
mov edi, esi
call fcn.00442810
mov ecx, eax
call fcn.00442950
lea edx, [esp + 0x2c]
push edx
mov ebx, eax
call fcn.004428b0
test ebx, ebx
jne 0x42906c
mov ebx, 0x3c8
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x7c]
push eax
call fcn.004429e0
push str.DefaultVersion
push str.Properties
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0xcc], 5
call fcn.004433b0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4290ac
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
cmp eax, ebx
jbe 0x429209
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429104
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0xc]
lea ecx, [esp + 0x2c]
push 0x4bd8d4
push ecx
call fcn.00409750
mov eax, dword [eax]
add esp, 8
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea ecx, [esp + 0x44]
push ecx
mov edi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
call fcn.004429e0
lea edx, [esp + 0x34]
push edx
push str.Default
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0xcc], 6
call fcn.004431a0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004434b0
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x44]
call fcn.004438b0
cmp byte [esp + 0xb1], 0
je 0x429171
lea eax, [esp + 0x7c]
push eax
call fcn.004430e0
lea ecx, [esp + 0x98]
call fcn.00443e40
lea ecx, [esp + 0x80]
call fcn.00410ab0
push 0x4992cc
xor ebx, ebx
lea eax, [esp + 0x80]
call fcn.00415d80
xor al, al
cmp byte [esp + 0x79], al
mov byte [esp + 0xb0], al
mov byte [esp + 0xb1], al
je 0x4291bc
lea ecx, [esp + 0x44]
push ecx
call fcn.004430e0
lea ecx, [esp + 0x60]
call fcn.00443e40
lea ecx, [esp + 0x48]
call fcn.00410ab0
push 0x4992cc
xor ebx, ebx
lea eax, [esp + 0x48]
call fcn.00415d80
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
xor al, al
mov byte [esp + 0x78], al
mov byte [esp + 0x79], al
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xc4], 5
call fcn.00442ab0
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0xc4], 3
call fcn.00442ab0
add esi, 0xfffffff0
mov byte [esp + 0xc0], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42923f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42924e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429276
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4292a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc