Function at 0x476550
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511291
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x55300c]
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 eax, edx
mov dword [ebp - 0x4b8], eax
mov dword [ebp - 0x4b4], ecx
cmp dword [eax + 0x14], 8
mov edi, eax
jb 0x476596
mov edi, dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4765aa
test al, 0x10
jne 0x476634
mov esi, edi
test edi, edi
je 0x47696a
push 0x5c
push esi
call fcn.004b68a7
mov esi, eax
add esp, 8
test esi, esi
je 0x476634
cmp word [esi - 2], 0x3a
je 0x47662f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4765d1
sub ecx, edx
mov edx, esi
sar ecx, 1
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4765e5
sub edx, ebx
sar edx, 1
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x218]
call fcn.00478960
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47662f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47696a
add esi, 2
jne 0x4765b4
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x260]
mov esi, 1
call fcn.00403b80
mov edx, 0x53103c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.004793d0
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x4b0]
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x476923
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x52b0d0
lea eax, [ebp - 0x484]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4766d6
test dx, dx
je 0x4766d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4766d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4766b0
xor eax, eax
jmp 0x4766db
sbb eax, eax
or eax, 1
test eax, eax
je 0x476911
mov ecx, 0x531028
lea eax, [ebp - 0x484]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x476716
test dx, dx
je 0x476712
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x476716
add eax, 4
add ecx, 4
test dx, dx
jne 0x4766f0
xor eax, eax
jmp 0x47671b
sbb eax, eax
or eax, 1
test eax, eax
je 0x476911
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x248]
call fcn.00403b80
push dword [ebp - 0x4b8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00403b80
lea edx, [ebp - 0x484]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.004793d0
lea edx, [ebp - 0x484]
lea ecx, [ebp - 0x230]
call fcn.004793d0
test byte [ebp - 0x4b0], 0x10
je 0x476835
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
cmp ecx, edx
jae 0x4767ae
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
mov dword [eax + ecx*2], 0x5c
jmp 0x4767ca
push 0x5c
mov byte [ebp - 0x4bc], 0
lea ecx, [ebp - 0x248]
push dword [ebp - 0x4bc]
push 1
call fcn.004195f0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
cmp ecx, edx
jae 0x4767fc
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [eax + ecx*2], 0x5c
jmp 0x476818
push 0x5c
mov byte [ebp - 0x4c0], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x4c0]
push 1
call fcn.004195f0
push 0
push 0
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.00476550
test eax, eax
jne 0x47686d
xor esi, esi
jmp 0x47686d
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push 0
cmovae ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
and esi, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4768b1
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4768a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47698a
push edx
push ecx
call fcn.00481e07
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x476911
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476907
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47698a
push edx
push ecx
call fcn.00481e07
add esp, 8
lea eax, [ebp - 0x4b0]
push eax
push edi
call ebx
test eax, eax
jne 0x4766a0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x476966
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47695c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47698a
push edx
push ecx
call fcn.00481e07
add esp, 8
mov eax, esi
jmp 0x47696c
xor eax, eax
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.00482225
mov esp, ebp
pop ebp
ret 8
call fcn.004c022b
int3