Function at 0x433470
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbe02
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4f6cdc]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, ecx
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x40e]
mov dword [ebp - 0x45c], 0
push edx
mov dword [ebp - 0x460], eax
mov word [ebp - 0x410], cx
call fcn.0049eae0
add esp, 0xc
push esi
mov dword [ebp - 0x450], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x4334fe
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, esi
je 0x433526
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433507
sub eax, edx
sar eax, 1
je 0x433526
push esi
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00430670
push ebx
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43368f
push 0
lea edx, [ebp - 0x458]
push edx
push 2
lea eax, [ebp - 0x454]
push eax
push esi
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43361f
mov ebx, dword [ebp - 0x460]
lea ecx, [ebp - 0x448]
push ecx
mov ecx, ebx
call fcn.00433440
mov edi, eax
lea edx, [ebp - 0x42c]
push edx
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x45c], 1
call fcn.00433440
cmp dword [eax + 0x14], 8
mov edi, dword [edi + 0x10]
mov ebx, 3
jb 0x4335fd
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x458]
push ecx
lea edx, [edi + edi]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x433625
mov byte [ebp - 0x449], 0
jmp 0x43362c
mov ebx, dword [ebp - 0x45c]
mov byte [ebp - 0x449], 1
test bl, 2
je 0x433669
and ebx, 0xfffffffd
cmp dword [ebp - 0x418], 8
jb 0x43364c
mov eax, dword [ebp - 0x42c]
push eax
call fcn.0049eb5a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], cx
test bl, 1
je 0x433686
cmp dword [ebp - 0x434], 8
jb 0x433686
mov edx, dword [ebp - 0x448]
push edx
call fcn.0049eb5a
add esp, 4
cmp byte [ebp - 0x449], 0
je 0x43369f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x450], 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 1
push eax
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x450]
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.0049f71b
mov esp, ebp
pop ebp
ret 0xc