Function at 0x433602
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes
Write file on windows

Disassembly:
push 0xac
mov eax, 0x4abf1c
call fcn.00473acf
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x20c], ebx
jle 0x433624
xor eax, eax
jmp 0x433918
lea ecx, [ebp - 0xb4]
call fcn.0042d1df
mov dword [ebp - 4], 1
lea eax, [edi + 4]
push ebx
push eax
mov dword [ebp - 0x90], eax
call fcn.0041c575
add esp, 4
mov esi, eax
mov ecx, esp
mov dword [ebp - 0x7c], esp
push esi
call fcn.00418464
mov byte [ebp - 4], 2
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.00432df2
mov byte [ebp - 4], 3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43368c
test al, 1
je 0x43368c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp esi, ebx
je 0x433697
push esi
call fcn.00474a9b
pop ecx
push dword [ebp - 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4336c6
push ecx
lea eax, [ebp - 0x80]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
call fcn.0040a8a7
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.004331e5
push ecx
lea eax, [ebp - 0x80]
mov ecx, esp
mov dword [ebp - 0x7c], esp
push eax
mov dword [ebp - 0x98], ebx
call fcn.0040a8a7
mov byte [ebp - 4], 5
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.004332db
mov byte [ebp - 4], 6
push ebx
push dword [ebp - 0x94]
call fcn.0041c528
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x7c], eax
call fcn.0041043f
mov byte [ebp - 4], 7
mov ecx, dword [edi + 0x210]
mov eax, dword [ecx]
lea edx, [ebp - 0x70]
push edx
call dword [eax + 0x40]
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x433731
lea eax, [ebp - 0x64]
push 0xfde9
push eax
call fcn.0041c575
pop ecx
pop ecx
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x88]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x433751
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 4]
push esi
call fcn.00474aa6
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0xb
push esi
push ebx
push dword [ebp - 0x74]
call fcn.00473120
push 2
lea eax, [ebp - 0x9c]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x9c], 0xfeff
call fcn.00473501
lea eax, [esi - 2]
push eax
push dword [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x74]
add eax, 2
push eax
call fcn.00473501
add esp, 0x30
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x22c], ebx
je 0x4337eb
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp - 0x74]
add edi, 0x230
push edi
call fcn.0042dcb7
add esp, 0x10
push eax
lea ecx, [ebp - 0x78]
call fcn.004287e4
jmp 0x433811
push esi
mov dword [ebp - 0x8c], esi
call fcn.00474aa6
pop ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.004287e4
push esi
push dword [ebp - 0x74]
push esi
push dword [ebp - 0x78]
call fcn.00473501
add esp, 0x10
mov edi, dword [ebp - 0x7c]
push 0x4c335c
lea eax, [ebp - 0x84]
push edi
push eax
mov dword [ebp - 0x84], ebx
call fcn.00474296
add esp, 0xc
cmp eax, ebx
jne 0x43389d
cmp dword [ebp - 0x84], ebx
je 0x43389d
push dword [ebp - 0x84]
push 1
push dword [ebp - 0x8c]
push dword [ebp - 0x78]
call fcn.00474f57
push dword [ebp - 0x84]
call fcn.00473ecb
add esp, 0x14
xor esi, esi
push ecx
mov ecx, esp
mov dword [ebp - 0x7c], esp
push dword [ebp - 0x90]
call fcn.0040abba
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xd
call fcn.0041d365
pop ecx
cmp eax, ebx
jne 0x43388a
inc esi
cmp esi, 0xa
jl 0x433861
push dword [ebp - 0x90]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x98], eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, ebx
je 0x4338af
push edi
call fcn.00474a9b
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.004287ad
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.004287ad
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.00428830
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.0040f9db
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff0
call fcn.00409a10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00409a10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.0042d237
mov eax, dword [ebp - 0x98]
call fcn.00473b52
ret