Function at 0x42ee70
Capabilities:
Check if file exists
Get common file path
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ac3c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c4], 0
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push 0x47ac50
mov dword [ebp - 0x2cc], edi
mov word [edi], ax
call fcn.0040a100
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x2c4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x42f257
cmp eax, 0x104
jg 0x42f257
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x42ef34
xor ecx, ecx
jmp 0x42ef4f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ef40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040a100
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0xa
call fcn.0042e1e0
push str.Installer
mov edx, eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xb
call fcn.004122e0
mov esi, eax
add esp, 4
cmp edi, esi
je 0x42f000
cmp dword [edi + 0x14], 8
jb 0x42efa9
push dword [edi]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esi + 0x14], 8
jae 0x42efd7
mov eax, dword [esi + 0x10]
inc eax
je 0x42efe1
add eax, eax
push eax
push esi
push edi
call fcn.0044c580
add esp, 0xc
jmp 0x42efe1
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x21c], 8
jb 0x42f017
push dword [ebp - 0x230]
call fcn.0044d5f9
add esp, 4
xor eax, eax
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x42f04b
push dword [ebp - 0x260]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
jb 0x42f082
push dword [ebp - 0x248]
call fcn.0044d5f9
add esp, 4
mov ecx, edi
call fcn.00409be0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42f0a0
shr eax, 4
and al, 1
jne 0x42f48f
push 0x1d
xor eax, eax
push str._Installer__subdir_not_found_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.0040a100
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 0xc
call fcn.0042f4b0
push eax
mov edx, 0x47c00c
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xd
call fcn.0041ede0
add esp, 4
push 0x47c004
mov edx, eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xe
call fcn.004122e0
add esp, 4
cmp dword [ebp - 0x24c], 8
jb 0x42f129
push dword [ebp - 0x260]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x264], 8
jb 0x42f161
push dword [ebp - 0x278]
call fcn.0044d5f9
add esp, 4
push 7
xor eax, eax
push str.ERROR:
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
call fcn.004092b0
push 0x47c044
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.0040b610
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x12
call fcn.00409560
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x27c], 8
jb 0x42f1d8
push dword [ebp - 0x290]
call fcn.0044d5f9
add esp, 4
mov ecx, dword [0x4acda0]
cmp ecx, 0xffffffff
je 0x42f212
cmp dword [ebp - 0x21c], 8
mov edx, dword [ebp - 0x230]
jae 0x42f1f8
lea edx, [ebp - 0x230]
push 0
lea eax, [ebp - 0x2c8]
push eax
mov eax, dword [ebp - 0x220]
add eax, eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x21c], 8
jb 0x42f229
push dword [ebp - 0x230]
call fcn.0044d5f9
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x234], 8
jb 0x42f244
push dword [ebp - 0x248]
call fcn.0044d5f9
add esp, 4
push 0
push 0x47ac50
mov ecx, edi
call fcn.0040a100
jmp 0x42f48f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c0]
call fcn.0041aa50
mov esi, eax
mov dword [ebp - 4], 1
push 0x1c
xor eax, eax
push 0x47ec14
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040a100
push esi
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call fcn.0040acc0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.0042f4b0
push eax
mov edx, 0x47c00c
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.0041ede0
add esp, 4
push 0x47c004
mov edx, eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.004122e0
add esp, 4
cmp dword [ebp - 0x264], 8
jb 0x42f314
push dword [ebp - 0x278]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24c], 8
jb 0x42f34c
push dword [ebp - 0x260]
call fcn.0044d5f9
add esp, 4
push 7
xor eax, eax
push str.ERROR:
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.004092b0
push 0x47c044
mov edx, esi
lea ecx, [ebp - 0x2a8]
call fcn.0040b610
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 9
call fcn.00409560
mov byte [ebp - 4], 8
cmp dword [ebp - 0x294], 8
jb 0x42f3bf
push dword [ebp - 0x2a8]
call fcn.0044d5f9
add esp, 4
mov ecx, dword [0x4acda0]
cmp ecx, 0xffffffff
je 0x42f3f9
cmp dword [ebp - 0x234], 8
mov edx, dword [ebp - 0x248]
jae 0x42f3df
lea edx, [ebp - 0x248]
push 0
lea eax, [ebp - 0x2c8]
push eax
mov eax, dword [ebp - 0x238]
add eax, eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x234], 8
jb 0x42f410
push dword [ebp - 0x248]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x27c], 8
jb 0x42f427
push dword [ebp - 0x290]
call fcn.0044d5f9
add esp, 4
xor eax, eax
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
jb 0x42f45b
push dword [ebp - 0x230]
call fcn.0044d5f9
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2ac], 8
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x42f48f
push dword [ebp - 0x2c0]
call fcn.0044d5f9
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret