Function at 0x5c7780
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5fb3c1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
mov ecx, dword [esp + 0x3c]
add eax, 0x10
mov dword [ecx], eax
mov edx, dword [esp + 0x40]
mov dword [esp + 0x34], edi
mov eax, dword [edx]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 1
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
je 0x5c7a8f
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x5c7a8f
add eax, 0xfffffff0
call fcn.0040a210
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], esi
mov eax, dword [edi - 0xc]
test eax, eax
jle 0x5c7844
lea ecx, [eax - 1]
test ecx, ecx
jl 0x5c78c4
cmp ecx, eax
jg 0x5c78c4
movzx eax, word [edi + ecx*2]
cmp ax, 0x5c
je 0x5c7844
push 0x5c
lea edi, [esp + 0x18]
call fcn.0040af90
mov edi, dword [esp + 0x14]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
call ebp
test eax, eax
je 0x5c7a6e
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x34], 2
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x34], 3
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 4
mov eax, dword [ebx]
push 0x2e
push eax
call fcn.005d37a2
add esp, 8
test eax, eax
jne 0x5c78ce
or eax, 0xffffffff
jmp 0x5c78d2
push 0x80070057
call fcn.00403650
sub eax, dword [ebx]
sar eax, 1
lea ecx, [esp + 0x28]
mov edx, ebx
call fcn.0041a270
lea edi, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0040ab90
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c7910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
push 0x2e
push eax
call fcn.005d37a2
add esp, 8
test eax, eax
jne 0x5c7926
or eax, 0xffffffff
jmp 0x5c792a
sub eax, dword [ebx]
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x28]
mov edx, ebx
call fcn.00409f40
lea edi, [esp + 0x20]
mov byte [esp + 0x34], 6
call fcn.0040ab90
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c796b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
mov ebp, dword [esp + 0x20]
je 0x5c7999
cmp dword [ebp - 0xc], 0
je 0x5c7999
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
push ebp
push edx
push esi
push str._s__u._s
lea edi, [esp + 0x2c]
call fcn.0040ac80
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ebx, [esp + 0x1c]
call fcn.0041eb50
add esp, 8
mov byte [esp + 0x34], 7
mov edi, dword [esp + 0x3c]
call fcn.0040ab90
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5c79e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5c7a03
mov esi, edi
call fcn.004036c0
mov esi, dword [esp + 0x18]
lea eax, [ebp - 0x10]
mov byte [esp + 0x34], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5c7a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c7a45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c7a6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
lea eax, [edi - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5c7a8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret