Function at 0x41bd70
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cfd0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov edi, dword [ebp + 0xc]
push 0x400
push 0
push eax
call fcn.004240d0
push 0
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 0x434], 0
push eax
push edi
mov dword [ebp - 0x430], 0
call fcn.0041f780
add esp, 0x1c
test al, al
je 0x41bf41
xorps xmm0, xmm0
mov dword [ebp - 0x418], 0
xor eax, eax
mov dword [ebp - 0x414], 7
movups xmmword [ebp - 0x428], xmm0
mov word [ebp - 0x428], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004120c0
add esp, 8
test al, al
je 0x41beea
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41beea
test al, 0x10
jne 0x41beea
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41be67
mov ecx, dword [esi]
mov edi, dword [ebp - 0x414]
lea eax, [ebp - 0x428]
mov edx, dword [ebp - 0x418]
cmp edi, 8
cmovae eax, dword [ebp - 0x428]
cmp edx, dword [esi + 0x10]
jne 0x41beba
test edx, edx
je 0x41beab
sub eax, ecx
mov dword [ebp - 0x438], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x41beba
mov eax, dword [ebp - 0x438]
add ecx, 2
sub edx, 1
jne 0x41be94
mov byte [ebp - 0x429], 1
mov al, byte [ebp - 0x429]
jmp 0x41bef8
cmp dword [esi + 0x14], 8
jb 0x41bec2
mov esi, dword [esi]
push 0
cmp edi, 8
lea eax, [ebp - 0x428]
push esi
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [ebp - 0x414]
test eax, eax
je 0x41bef0
mov al, 1
jmp 0x41bef2
mov edi, dword [ebp - 0x414]
xor al, al
mov byte [ebp - 0x429], al
cmp edi, 8
jb 0x41bfdc
mov ecx, dword [ebp - 0x428]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x41bf2c
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c01a
push edi
push ecx
call fcn.00422026
mov al, byte [ebp - 0x429]
add esp, 8
jmp 0x41bfdc
push 0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
push edi
call fcn.0041f760
add esp, 0x10
test al, al
je 0x41bfda
cmp dword [ebp - 0x434], 0
je 0x41bfda
cmp dword [ebp - 0x430], 0
jle 0x41bfda
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41bf7a
mov eax, dword [esi]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bfda
push 0
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0
push eax
push dword [ebp - 0x430]
push dword [ebp - 0x434]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41bff7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x41bfd3
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
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.00422285
mov esp, ebp
pop ebp
ret
push 0x10000000
push 1
push edi
call fcn.00412320
push 1
push edi
call fcn.004123a0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x41bfdc
call fcn.00425c2e
int3