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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4b7827
cmp word [ebx], 0
je 0x4b7827
test edi, edi
je 0x4b7827
cmp word [edi], 0
je 0x4b7827
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b7827
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7596
sub ecx, edx
mov eax, 0x5ffaa4
sar ecx, 1
push ebx
movzx esi, word [ebx + ecx*2 - 2]
mov ecx, 0x5ffa90
cmp esi, 0x5c
cmovne eax, ecx
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004b7dc0
push ebx
mov ebx, 0x5ffaac
mov ecx, 0x5ffa9c
cmp esi, 0x5c
mov eax, ebx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004b7dc0
lea ecx, [ebp - 0x414]
add esp, 0x20
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7600
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
lea eax, [eax + ecx*2]
mov ecx, edi
mov dword [ebp - 0x870], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7623
sub ecx, edx
mov eax, 0x5ffa9c
sar ecx, 1
push edi
cmp word [edi + ecx*2 - 2], 0x5c
cmovne ebx, eax
lea eax, [ebp - 0x20c]
push ebx
push 0x104
push eax
call fcn.004b7dc0
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7660
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
lea esi, [ebp - 0x20c]
push eax
lea esi, [esi + ecx*2]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b76a1
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b7827
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea eax, [ebp - 0x86c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4b780d
nop dword [eax]
test byte [ebp - 0x86c], 0x10
je 0x4b776f
cmp word [ebp - 0x840], 0x2e
je 0x4b77f7
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b76f4
mov ebx, dword [ebp - 0x870]
lea eax, [ebp - 0x840]
push eax
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push ebx
call fcn.005ad6ee
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b7730
lea ecx, [ebp - 0x840]
sub eax, edx
push ecx
sar eax, 1
mov ecx, 0x104
sub ecx, eax
push ecx
push esi
call fcn.005ad6ee
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004b7540
add esp, 0x14
jmp 0x4b77f7
mov ebx, dword [ebp - 0x870]
lea ecx, [ebp - 0x414]
xor eax, eax
lea edx, [ecx + 2]
mov word [esi], ax
mov word [ebx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7786
lea eax, [ebp - 0x840]
sub ecx, edx
push eax
sar ecx, 1
mov eax, 0x104
sub eax, ecx
push eax
push ebx
call fcn.005ad6ee
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b77b6
lea eax, [ebp - 0x840]
sub ecx, edx
push eax
sar ecx, 1
mov eax, 0x104
sub eax, ecx
push eax
push esi
call fcn.005ad6ee
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4b7827
lea eax, [ebp - 0x86c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b76d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret