Function at 0x569fd0
Capabilities:
Copy file
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4e9c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov edi, dword [ebp + 8]
mov edx, edi
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x278], 0
test edi, edi
je 0x56a04b
mov esi, edi
lea eax, [esi + 2]
mov dword [ebp - 0x264], eax
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x56a030
sub esi, dword [ebp - 0x264]
mov eax, 0
sar esi, 1
cmove edx, eax
test ebx, ebx
je 0x56a07b
mov esi, ebx
lea eax, [esi + 2]
mov dword [ebp - 0x264], eax
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x56a060
sub esi, dword [ebp - 0x264]
mov eax, 0
sar esi, 1
cmove ecx, eax
test edx, edx
je 0x56a0b7
test ecx, ecx
je 0x56a0bf
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x56a0a9
test ax, ax
je 0x56a0a5
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x56a0a9
add ecx, 4
add edx, 4
test ax, ax
jne 0x56a083
xor eax, eax
jmp 0x56a0ae
sbb eax, eax
or eax, 1
test eax, eax
jne 0x56a0bf
jmp 0x56a38f
test ecx, ecx
je 0x56a38f
test ebx, ebx
je 0x56a38f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x56a0d0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x56a38f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x56a0f0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x56a38f
mov esi, dword [ebp - 0x268]
mov eax, dword [esi + 4]
test eax, eax
jne 0x56a2b3
push ebx
mov ecx, esi
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
call fcn.005697d0
test eax, eax
je 0x56a38f
push 0
push ebx
push 0
lea eax, [ebp - 0x264]
mov ecx, esi
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00568030
test eax, eax
je 0x56a38f
cmp dword [ebp - 0x268], 0
je 0x56a38f
cmp dword [ebp - 0x264], 0
jbe 0x56a38f
xor ebx, ebx
test edi, edi
je 0x56a1cc
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x56a180
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
mov ebx, eax
lea eax, [esi + esi]
push eax
push 0
push ebx
call fcn.0058c8f0
lea eax, [edi + edi]
mov edi, dword [ebp - 0x26c]
push eax
push edi
push ebx
call fcn.0058bd80
add esp, 0x1c
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test ebx, ebx
je 0x56a1eb
push ebx
call fcn.0050edcc
add esp, 4
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push edi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x56a224
call fcn.004b34f0
test eax, eax
js 0x56a38f
jmp 0x56a22c
mov esi, eax
mov dword [ebp - 0x270], esi
push 0
push 0
push 0
lea ecx, [ebp - 0x270]
call fcn.004b49e0
test eax, eax
js 0x56a28e
push 0
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x56a26a
call fcn.004b34f0
test eax, eax
js 0x56a28e
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x56a28e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x278], 1
lea ecx, [ebp - 0x270]
call fcn.00568930
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x56a38f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x56a38f
cmp eax, 1
jne 0x56a38f
mov eax, dword [esi + 0x18]
sub eax, 0x10
push eax
call fcn.004bfdc0
add eax, 0x10
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00567f60
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.004bfcd0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call fcn.004b2a80
push ebx
lea ecx, [ebp - 0x274]
call fcn.004bc730
push eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004bc8d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 3
call fcn.004bfcd0
lea ecx, [ebp - 0x26c]
call fcn.004b2a80
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0
call fcn.004b2a80
mov esi, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x268]
push esi
call fcn.005697d0
test eax, eax
je 0x56a384
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x264]
call fcn.004b2a80
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 8