Function at 0x42eeb0
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 0x46ac7c
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 0x47abfc
mov dword [ebp - 0x2cc], edi
mov word [edi], ax
call fcn.0040a110
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 0x42f297
cmp eax, 0x104
jg 0x42f297
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x42ef74
xor ecx, ecx
jmp 0x42ef8f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ef80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040a110
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0xa
call fcn.0042e220
push str.Installer
mov edx, eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xb
call fcn.00412310
mov esi, eax
add esp, 4
cmp edi, esi
je 0x42f040
cmp dword [edi + 0x14], 8
jb 0x42efe9
push dword [edi]
call fcn.0044d639
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 0x42f017
mov eax, dword [esi + 0x10]
inc eax
je 0x42f021
add eax, eax
push eax
push esi
push edi
call fcn.0044c5c0
add esp, 0xc
jmp 0x42f021
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 0x42f057
push dword [ebp - 0x230]
call fcn.0044d639
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 0x42f08b
push dword [ebp - 0x260]
call fcn.0044d639
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 0x42f0c2
push dword [ebp - 0x248]
call fcn.0044d639
add esp, 4
mov ecx, edi
call fcn.00409bf0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42f0e0
shr eax, 4
and al, 1
jne 0x42f4cf
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.0040a110
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 0xc
call fcn.0042f4f0
push eax
mov edx, 0x47c010
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xd
call fcn.0041ee20
add esp, 4
push 0x47c008
mov edx, eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xe
call fcn.00412310
add esp, 4
cmp dword [ebp - 0x24c], 8
jb 0x42f169
push dword [ebp - 0x260]
call fcn.0044d639
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 0x42f1a1
push dword [ebp - 0x278]
call fcn.0044d639
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.004092c0
push 0x47bfb8
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.0040b640
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x12
call fcn.00409570
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x27c], 8
jb 0x42f218
push dword [ebp - 0x290]
call fcn.0044d639
add esp, 4
mov ecx, dword [0x4acd9c]
cmp ecx, 0xffffffff
je 0x42f252
cmp dword [ebp - 0x21c], 8
mov edx, dword [ebp - 0x230]
jae 0x42f238
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 0x42f269
push dword [ebp - 0x230]
call fcn.0044d639
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x234], 8
jb 0x42f284
push dword [ebp - 0x248]
call fcn.0044d639
add esp, 4
push 0
push 0x47abfc
mov ecx, edi
call fcn.0040a110
jmp 0x42f4cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c0]
call fcn.0041aa90
mov esi, eax
mov dword [ebp - 4], 1
push 0x1c
xor eax, eax
push 0x47ec3c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040a110
push esi
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call fcn.0040acf0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.0042f4f0
push eax
mov edx, 0x47c010
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.0041ee20
add esp, 4
push 0x47c008
mov edx, eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.00412310
add esp, 4
cmp dword [ebp - 0x264], 8
jb 0x42f354
push dword [ebp - 0x278]
call fcn.0044d639
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 0x42f38c
push dword [ebp - 0x260]
call fcn.0044d639
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.004092c0
push 0x47bfb8
mov edx, esi
lea ecx, [ebp - 0x2a8]
call fcn.0040b640
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 9
call fcn.00409570
mov byte [ebp - 4], 8
cmp dword [ebp - 0x294], 8
jb 0x42f3ff
push dword [ebp - 0x2a8]
call fcn.0044d639
add esp, 4
mov ecx, dword [0x4acd9c]
cmp ecx, 0xffffffff
je 0x42f439
cmp dword [ebp - 0x234], 8
mov edx, dword [ebp - 0x248]
jae 0x42f41f
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 0x42f450
push dword [ebp - 0x248]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x27c], 8
jb 0x42f467
push dword [ebp - 0x290]
call fcn.0044d639
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 0x42f49b
push dword [ebp - 0x230]
call fcn.0044d639
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 0x42f4cf
push dword [ebp - 0x2c0]
call fcn.0044d639
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.0044c32d
mov esp, ebp
pop ebp
ret