Function at 0x432240
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbd50
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x81c], ecx
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x812]
xor edi, edi
push edx
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x824], edi
mov word [ebp - 0x814], cx
call fcn.0049eae0
add esp, 0xc
mov dword [ebp - 0x820], edi
test ebx, ebx
je 0x43283d
mov edi, dword [ebp - 0x81c]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
test al, al
je 0x432495
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
mov byte [ebp - 0x815], 0
call edx
test al, al
je 0x432391
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0049eae0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x432339
mov edx, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add edx, 0xc16
push edx
lea eax, [ebp - 0x414]
push eax
call edi
jmp 0x43233f
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, esi
je 0x43236b
mov eax, esi
lea edx, [eax + 2]
jmp 0x432350
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432350
sub eax, edx
sar eax, 1
je 0x43236b
push esi
lea ecx, [ebp - 0x414]
push ecx
call edi
push ebx
lea edx, [ebp - 0x414]
push edx
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x432495
mov edi, dword [ebp - 0x81c]
add edi, 0x1018
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x828], edi
mov word [ebp - 0x814], cx
cmp esi, edi
je 0x4323f1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4323c5
sub eax, edx
sar eax, 1
je 0x4323f1
mov ecx, esi
lea edx, [ebp - 0x814]
mov edi, edi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, di
jne 0x4323e0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4323f5
lea edi, [ebp - 0x814]
sub eax, edx
add edi, 0xfffffffe
jmp 0x432410
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x432410
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x834]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x814]
push edx
call fcn.0049abc0
add esp, 0x10
cmp eax, 1
jne 0x4327a1
mov byte [ebp - 0x815], al
mov eax, dword [ebp - 0x820]
push eax
call fcn.0049acf0
mov ecx, dword [ebp - 0x81c]
add esp, 4
add ecx, 0x1018
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x815], 0
je 0x432835
mov ebx, dword [ebp - 0x838]
push ebx
mov dword [ebp - 0x830], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, 1
jne 0x4324cd
mov edx, dword [ebp - 0x81c]
add edx, 0xc16
push edx
lea eax, [ebp - 0x814]
push eax
call esi
test ebx, ebx
je 0x4324f1
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4324d6
sub eax, edx
sar eax, 1
je 0x4324f1
push ebx
lea ecx, [ebp - 0x814]
push ecx
call esi
mov edi, dword [ebp - 0x83c]
push edi
lea edx, [ebp - 0x814]
push edx
call esi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x432569
mov eax, dword [ebp - 0x81c]
add eax, 0x804
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x432522
sub ecx, esi
sar ecx, 1
je 0x432569
lea edx, [ebp - 0x814]
sub edx, eax
jmp 0x432540
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x432540
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea ecx, [ebp - 0x814]
push ecx
call esi
push edi
lea edx, [ebp - 0x814]
push edx
call esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43281a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004a0979
add esp, 4
push 0
lea edx, [ebp - 0x830]
push edx
push edi
push eax
push ebx
mov dword [ebp - 0x820], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4325ef
mov ecx, dword [ebp - 0x82c]
push edi
call fcn.00404220
xor esi, esi
test edi, edi
je 0x4325ef
mov eax, dword [ebp - 0x820]
lea ecx, [esi + eax]
push ecx
mov ecx, dword [ebp - 0x82c]
call fcn.0041a630
inc esi
cmp esi, edi
jb 0x4325d5
mov edx, dword [ebp - 0x820]
push edx
call fcn.004a0a01
mov edi, dword [ebp - 0x81c]
add esp, 4
cmp byte [edi + 0xc15], 0
mov dword [ebp - 0x820], 0
jne 0x432824
lea esi, [edi + 4]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432623
sub eax, edx
sar eax, 1
je 0x432824
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0049eae0
lea edx, [ebp - 0x414]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x432660
mov esi, dword [ebp - 0x838]
test esi, esi
je 0x4326d0
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432680
sub eax, edx
sar eax, 1
je 0x4326d0
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432695
lea edi, [ebp - 0x414]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4326b0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4326b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x81c]
lea edx, [ebp - 0x414]
push edx
mov ecx, edi
call fcn.00430670
mov eax, dword [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0x14], 0
je 0x43274f
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x414]
push ecx
call esi
cmp eax, 1
jne 0x43274f
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x43274f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43280d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x43280d
cmp eax, 5
je 0x43280d
cmp eax, 0x20
je 0x43280d
push ebx
mov esi, 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x43283f
test eax, eax
je 0x4327b4
mov dword [ebp - 0x824], 1
jmp 0x43245f
mov eax, dword [ebp - 0x834]
mov edi, dword [ebp - 0x82c]
push eax
mov ecx, edi
call fcn.00404220
xor esi, esi
lea ebx, [ebx]
cmp esi, dword [ebp - 0x834]
jae 0x43245f
mov ecx, dword [ebp - 0x828]
lea edx, [esi + ecx]
add edx, dword [ebp - 0x820]
mov ecx, edi
push edx
call fcn.0041a630
inc esi
jmp 0x4327d0
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x43283f
mov dword [ebp - 0x824], 1
mov esi, dword [ebp - 0x824]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x43283f
mov eax, dword [ebp - 0x824]
jmp 0x43283f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 0x10