Function at 0x419ad0
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Get file attributes
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x4a206c]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0xffffff28
mov eax, dword [edi + 0x3c]
dec eax
cmp eax, 0x1c
ja case.default.0x419afc
jmp dword [eax*4 + 0x41a3dc]
mov ecx, edi
call fcn.004184f0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x419b41
cmp eax, 2
jle case.0x419afc.26
push eax
call fcn.0044dde8
add esp, 4
cmp eax, 0xffffffff
jne case.0x419afc.26
mov dword [edi + 0x48], 0xfffff00d
mov dword [edi + 0xf0], 6
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004187b0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0xf4]
mov eax, dword [edi + 0x110]
mov esi, dword [edi + 0x114]
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], esi
cmp ecx, 0xffffffff
je 0x419b41
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push ecx
movlpd qword [esp + 0x1c], xmm0
call fcn.0044d065
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
cmp ecx, 0xffffffff
jne 0x419be7
mov ecx, 6
mov dword [edi + 0xf0], 6
call fcn.0041c770
mov dword [edi + 0x48], eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov eax, edx
and eax, esi
cmp eax, 0xffffffff
je 0x419c34
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0
push 1
mov dword [esp + 0x38], eax
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
movaps xmmword [esp + 0x44], xmm0
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x419c3c
mov dword [esp + 0x20], 1
jmp 0x419c3c
mov dword [esp + 0x34], 0
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, edx
and eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x419c61
mov eax, ecx
xor ecx, ecx
add eax, edx
mov dword [esp + 0x48], eax
adc ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
push dword [esp + 0x34]
mov eax, dword [edi + 0x10c]
lea ecx, [esp + 0x3c]
push ecx
push dword [eax + esi*8]
push dword [eax + esi*8 + 4]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
inc esi
add ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
test eax, eax
je 0x419ca2
mov edx, dword [esp + 0x10]
cmp esi, dword [edi + 0x108]
jb 0x419c44
cmp dword [esp + 0x20], 0
je 0x419cc7
push 0
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x419ccf
test ecx, ecx
je 0x419d25
mov dword [edi + 0x48], ecx
cmp ecx, 0xffffffff
jne case.default.0x419afc
call fcn.0044c2ba
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
call fcn.0041c770
mov dword [edi + 0x48], eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x100]
and eax, 1
push eax
push dword [edi + 0xfc]
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne case.0x419afc.26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x419ce8
mov eax, dword [edi + 0xf4]
mov ecx, 0x10000
mov esi, dword [edi + 0x118]
cmp esi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x104]
cmovb ecx, esi
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x110]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x114]
mov dword [esp + 0x24], eax
xor eax, eax
push ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], eax
call dword [0x4a2e1c]
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
test edx, edx
je 0x41a3cb
mov ecx, dword [esp + 0x18]
mov eax, ecx
and eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x419dbc
push 0
push dword [esp + 0x28]
push ecx
push dword [esp + 0x2c]
call fcn.0044d35d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x419e08
mov edx, dword [esp + 0x14]
test esi, esi
je 0x419e0f
jmp 0x419dc6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
cmp esi, eax
cmovb eax, esi
push eax
push edx
push dword [esp + 0x28]
call fcn.0044d874
add esp, 0xc
test eax, eax
je 0x419e0f
cmp eax, 0xffffffff
je 0x419e08
push eax
push dword [esp + 0x18]
sub esi, eax
push dword [esp + 0x3c]
call fcn.0044e4b4
add esp, 0xc
cmp eax, 0xffffffff
je 0x419e08
add dword [esp + 0x10], eax
test esi, esi
jne 0x419dc2
jmp 0x419e0f
or eax, 0xffffffff
mov dword [esp + 0x10], eax
call fcn.0044c2cd
push dword [esp + 0x14]
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov dword [eax], esi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
mov dword [edi + 0x48], eax
jmp 0x419cd5
mov edx, dword [edi + 0xf4]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419e44
sub ecx, esi
sar ecx, 1
cmp ecx, 1
jbe 0x419e76
cmp word [edx + ecx*2 - 4], 0x3a
je 0x419e76
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x419e6f
cmp eax, 0x2f
jne 0x419e76
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push 0
push 0x2000000
push 3
push 0
push 7
push 0x80
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x419d25
lea edx, [edi + 0x58]
mov ecx, esi
push 0
call fcn.00419130
add esp, 4
test eax, eax
je 0x419eeb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ecx, eax
mov dword [edi + 0xf0], eax
call fcn.0041c770
push dword [esp + 0x18]
mov dword [edi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x58]
mov dword [edi + 0x48], 0
push esi
mov dword [edi + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0xf4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419f20
sub ecx, esi
sar ecx, 1
cmp ecx, 1
jbe 0x419f52
cmp word [edx + ecx*2 - 4], 0x3a
je 0x419f52
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x419f4b
cmp eax, 0x2f
jne 0x419f52
xor eax, eax
mov word [edx + ecx*2 - 2], ax
mov edx, 1
mov ecx, edi
call fcn.00419400
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x419b41
push eax
call fcn.0044d065
add esp, 4
cmp eax, 0xffffffff
je 0x419bbf
lea esi, [edi + 0x58]
mov ecx, eax
push 0
mov edx, esi
call fcn.00419130
add esp, 4
test eax, eax
jne 0x419d25
mov dword [edi + 0x4c], esi
mov dword [edi + 0x48], 0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x419b41
push eax
call fcn.0044d065
mov ecx, dword [edi + 0x110]
add esp, 4
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x114]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
push 0x14
push 8
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [0x4b0804]
test eax, eax
jns case.0x419afc.26
push eax
call dword [0x4b0818]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x419ce8
push 0
push 0x2000000
push 3
push 0
push 7
push 0x100
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419d25
movsd xmm0, qword [edi + 0xf8]
mulsd xmm0, qword [0x499cd0]
call fcn.004826f0
movsd xmm0, qword [edi + 0x100]
add eax, 0xd53e8000
mulsd xmm0, qword [0x499cd0]
adc edx, 0x19db1de
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.004826f0
add eax, 0xd53e8000
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
adc edx, 0x19db1de
push eax
push 0
push esi
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41a0db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [edi + 0xf0], eax
call fcn.0041c770
push esi
mov dword [edi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x419afc.26
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x419b41
push eax
call fcn.0044d065
add esp, 4
cmp eax, 0xffffffff
je 0x419bbf
movsd xmm2, qword [edi + 0x100]
mov ecx, eax
movsd xmm1, qword [edi + 0xf8]
call fcn.004194d0
test eax, eax
je case.0x419afc.26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x419ce8
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419d25
test byte [edi + 0xf8], 2
je case.0x419afc.26
and al, 0x11
cmp al, 1
jne case.0x419afc.26
mov dword [edi + 0xf0], 0xfffff030
mov ecx, 0xfffff030
jmp 0x419ce8
push dword [edi + 0xf8]
push dword [edi + 0xf4]
call fcn.0044eb16
add esp, 8
mov dword [edi + 0x48], eax
cmp eax, 0xffffffff
jmp 0x419cd5
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x419b41
push eax
call fcn.0044d065
add esp, 4
mov esi, eax
lea eax, [esp + 0x40]
push 4
push 0x28
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [0x4b07f4]
test eax, eax
js 0x41a009
test byte [edi + 0xf8], 0x80
je 0x41a1e0
and dword [esp + 0x60], 0xfffffffe
jmp 0x41a1e5
or dword [esp + 0x60], 1
push 4
push 0x28
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [0x4b0804]
test eax, eax
js 0x41a009
mov dword [edi + 0x20], 0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x419b41
push eax
call fcn.0044d065
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne case.0x419afc.26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x419ce8
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
jne 0x41a229
jmp 0x419b41
mov ecx, edi
call fcn.00418960
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x419d25
jmp 0x41a202
push dword [edi + 0xf4]
call fcn.0044d393
add esp, 4
mov dword [edi + 0x48], eax
cmp eax, 0xffffffff
jmp 0x419cd5
mov ecx, edi
call fcn.00418ac0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
push 1
push dword [edi + 0xfc]
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne case.0x419afc.26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x419ce8
mov ecx, edi
call fcn.00418dc0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
push 0
push dword [edi + 0xf4]
push dword [edi + 0xfc]
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne case.0x419afc.26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x419ce8
mov ecx, edi
call fcn.00419860
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
push 0
push 0x2200000
push 3
push 0
push 0
push 0
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419d25
push 0
lea edx, [edi + 0x4c]
mov ecx, esi
call fcn.004182a0
add esp, 4
test eax, eax
jne 0x41a0ad
or dword [edi + 0xec], 8
push esi
mov dword [edi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00419930
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.0041c6e0
nop
add ebx, dword [ebx - 0x64e4ffbf]
inc ecx
add byte [ebx - 0x65], ah
inc ecx
add byte [ebx - 0x65], bh
inc ecx
add byte [0x3900419d], dh
sahf
inc ecx
add byte [eax], dl
lahf
inc ecx
add byte [edi - 0x61], ch
inc ecx
add ah, al
lahf
inc ecx
add byte [0xe70041a0], bl
mov al, byte [0xa13a0041]
inc ecx
add byte [edx - 0x5f], bh
inc ecx
add byte [ecx + 0x1a0041a1], bl
mov byte [0xa2540041], al
inc ecx
add byte [edx + 0x41], ah
add byte [edx + 0x41], bh
add byte [ebp - 0x51ffbe5e], dl
mov byte [0xa2c60041], al
inc ecx
add ch, dh
mov byte [0xa30d0041], al
inc ecx
add byte [ebx], bh
inc ecx
add byte [ebx + 0x41], dl
add byte [edi + ebx*4 - 0x6053ffbf], ch
inc ecx
add byte [ebx + 0x10041a3], dh
popfd
inc ecx
add byte [ebx - 0x7efbdbac], cl
ret 0xff28