Function at 0x47d670
Capabilities:
Copy file
Create directory
Delete directory
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 [0x50b06c]
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.0x47d69c
jmp dword [eax*4 + 0x47dec8]
mov ecx, edi
call fcn.0047c030
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x47d6e1
cmp eax, 2
jle case.0x47d69c.26
push eax
call fcn.004aa8c9
add esp, 4
cmp eax, 0xffffffff
jne case.0x47d69c.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.004879f1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0047c2f0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
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 0x47d6e1
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push ecx
movlpd qword [esp + 0x24], xmm0
call fcn.004a9b46
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffffffff
jne 0x47d787
mov ecx, 6
mov dword [edi + 0xf0], 6
call fcn.004822d0
mov dword [edi + 0x48], eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov eax, edx
and eax, esi
cmp eax, 0xffffffff
je 0x47d7d4
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 + 0x2c]
push dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x10]
test eax, eax
je 0x47d7dc
mov dword [esp + 0x18], 1
jmp 0x47d7dc
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 0x47d801
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 + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
inc esi
add ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
test eax, eax
je 0x47d842
mov edx, dword [esp + 0x10]
cmp esi, dword [edi + 0x108]
jb 0x47d7e4
cmp dword [esp + 0x18], 0
je 0x47d867
push 0
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x47d86f
test ecx, ecx
je 0x47d8c5
mov dword [edi + 0x48], ecx
cmp ecx, 0xffffffff
jne case.default.0x47d69c
call fcn.004a904c
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
call fcn.004822d0
mov dword [edi + 0x48], eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
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.0x47d69c.26
call dword [0x4eb0cc]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x47d888
mov eax, dword [edi + 0xf4]
mov ecx, 0x10000
mov esi, dword [edi + 0x118]
cmp esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x104]
cmovb ecx, esi
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x110]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x114]
mov dword [esp + 0x1c], eax
xor eax, eax
push ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], eax
call dword [0x50bacc]
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
test edx, edx
je 0x47deb6
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x47d95c
push 0
push dword [esp + 0x20]
push ecx
push dword [esp + 0x24]
call fcn.004a9e3e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x47d9a8
mov edx, dword [esp + 0x14]
test esi, esi
je 0x47d9af
jmp 0x47d966
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
cmp esi, eax
cmovb eax, esi
push eax
push edx
push dword [esp + 0x20]
call fcn.004aa355
add esp, 0xc
test eax, eax
je 0x47d9af
cmp eax, 0xffffffff
je 0x47d9a8
push eax
push dword [esp + 0x18]
sub esi, eax
push dword [esp + 0x3c]
call fcn.004aaf95
add esp, 0xc
cmp eax, 0xffffffff
je 0x47d9a8
add dword [esp + 0x10], eax
test esi, esi
jne 0x47d962
jmp 0x47d9af
or eax, 0xffffffff
mov dword [esp + 0x10], eax
call fcn.004a905f
push dword [esp + 0x14]
mov esi, dword [eax]
call dword [0x50bad8]
add esp, 4
call fcn.004a905f
mov dword [eax], esi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
mov dword [edi + 0x48], eax
jmp 0x47d875
mov edx, dword [edi + 0xf4]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d9e4
sub ecx, esi
sar ecx, 1
cmp ecx, 1
jbe 0x47da16
cmp word [edx + ecx*2 - 4], 0x3a
je 0x47da16
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x47da0f
cmp eax, 0x2f
jne 0x47da16
xor eax, eax
mov word [edx + ecx*2 - 2], ax
xor edx, edx
mov ecx, edi
call fcn.0047cf40
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
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 0x47da40
sub ecx, esi
sar ecx, 1
cmp ecx, 1
jbe 0x47da72
cmp word [edx + ecx*2 - 4], 0x3a
je 0x47da72
movzx eax, word [edx + ecx*2 - 2]
cmp eax, 0x5c
je 0x47da6b
cmp eax, 0x2f
jne 0x47da72
xor eax, eax
mov word [edx + ecx*2 - 2], ax
mov edx, 1
mov ecx, edi
call fcn.0047cf40
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x47d6e1
push eax
call fcn.004a9b46
add esp, 4
cmp eax, 0xffffffff
je 0x47d75f
lea esi, [edi + 0x58]
mov ecx, eax
push 0
mov edx, esi
call fcn.0047cc70
add esp, 4
test eax, eax
jne 0x47d8c5
mov dword [edi + 0x4c], esi
mov dword [edi + 0x48], 0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x47d6e1
push eax
call fcn.004a9b46
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 + 0x2c]
push ecx
push eax
call dword [0x50f714]
test eax, eax
jns case.0x47d69c.26
push eax
call dword [0x50f720]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x47d888
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 0x47d8c5
movsd xmm0, qword [edi + 0xf8]
mulsd xmm0, qword [0x501180]
call fcn.004e6400
movsd xmm0, qword [edi + 0x100]
add eax, 0xd53e8000
mulsd xmm0, qword [0x501180]
adc edx, 0x19db1de
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call fcn.004e6400
add eax, 0xd53e8000
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
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 0x47dbfb
call dword [0x4eb0cc]
mov ecx, eax
mov dword [edi + 0xf0], eax
call fcn.004822d0
push esi
mov dword [edi + 0x48], eax
call dword [0x4eb070]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
push esi
call dword [0x4eb070]
jmp case.0x47d69c.26
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x47d6e1
push eax
call fcn.004a9b46
add esp, 4
cmp eax, 0xffffffff
je 0x47d75f
movsd xmm2, qword [edi + 0x100]
mov ecx, eax
movsd xmm1, qword [edi + 0xf8]
call fcn.0047d070
test eax, eax
je case.0x47d69c.26
call dword [0x4eb0cc]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x47d888
push dword [edi + 0xf4]
call fcn.0059c78c
ret
push dword [edi + 0xf8]
push dword [edi + 0xf4]
call fcn.004ab5f7
add esp, 8
mov dword [edi + 0x48], eax
cmp eax, 0xffffffff
jmp 0x47d875
mov eax, dword [edi + 0xf4]
cmp eax, 0xffffffff
je 0x47d6e1
push eax
call fcn.004a9b46
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 [0x50f704]
test eax, eax
js 0x47db29
test byte [edi + 0xf8], 0x80
je 0x47dd00
and dword [esp + 0x60], 0xfffffffe
jmp 0x47dd05
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 [0x50f714]
test eax, eax
js 0x47db29
mov dword [edi + 0x20], 0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0047d010
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0047c4a0
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x47d8c5
jmp 0x47dd22
push dword [edi + 0xf4]
call fcn.004a9e74
add esp, 4
mov dword [edi + 0x48], eax
cmp eax, 0xffffffff
jmp 0x47d875
mov ecx, edi
call fcn.0047c600
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
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.0x47d69c.26
call dword [0x4eb0cc]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x47d888
mov ecx, edi
call fcn.0047c900
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
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.0x47d69c.26
call dword [0x4eb0cc]
mov dword [edi + 0xf0], eax
mov ecx, eax
jmp 0x47d888
mov ecx, edi
call fcn.0047d400
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
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 0x47d8c5
push 0
lea edx, [edi + 0x4c]
mov ecx, esi
call fcn.0047bde0
add esp, 4
test eax, eax
jne 0x47dbcd
or dword [edi + 0xec], 8
push esi
mov dword [edi + 0x48], eax
call dword [0x4eb070]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0047d4d0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.004879f1
mov esp, ebp
pop ebp
ret
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
nop dword [eax]
mov dword [0xbb0047d6], eax
salc
inc edi
add byte [ebx], al
xlatb
inc edi
add byte [ebx], bl
xlatb
inc edi
add ch, dl
fadd dword [edi]
fstpnce st(1), st(0)
inc edi
add byte [eax], dh
fiadd dword [edi]
invalid