Function at 0x459d90
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x34c]
sub esp, 0x34c
push 0xffffffffffffffff
push 0x4afee8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ecba0]
xor eax, ebp
mov dword [ebp + 0x348], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x358]
mov esi, dword [ebp + 0x354]
mov edi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x11], 0
call fcn.0046d74a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x459dfe
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
call fcn.0046d74a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x459e2e
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea ecx, [ebp + 0x244]
push 0x4cbcf4
mov ebx, 2
push ecx
mov byte [ebp - 4], bl
call fcn.00457190
add esp, 0xc
lea edx, [ebp]
push edx
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x459f87
jmp 0x459e83
mov esi, dword [ebp - 0x24]
mov ecx, 0x4cbcf0
lea eax, [ebp + 0x2c]
jmp 0x459e90
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x459eae
test dl, dl
je 0x459eaa
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x459eae
add eax, ebx
add ecx, ebx
test dl, dl
jne 0x459e90
xor eax, eax
jmp 0x459eb3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x459f71
mov ecx, 0x4cbcec
lea eax, [ebp + 0x2c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x459ee1
test dl, dl
je 0x459edd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x459ee1
add eax, ebx
add ecx, ebx
test dl, dl
jne 0x459ec3
xor eax, eax
jmp 0x459ee6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x459f71
lea ecx, [ebp + 0x2c]
push ecx
push esi
lea edx, [ebp + 0x244]
push 0x4bbd28
push edx
call fcn.00457190
mov ecx, dword [ebp - 0x28]
lea eax, [ebp + 0x2c]
push eax
push ecx
lea edx, [ebp + 0x140]
push 0x4bbd28
push edx
call fcn.00457190
add esp, 0x20
test byte [ebp], 0x10
je 0x45a01a
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
lea ecx, [ebp + 0x140]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea edx, [ebp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [ebp + 0x140]
push eax
lea ecx, [ebp + 0x244]
push ecx
mov ecx, edi
call fcn.00459d90
test al, al
je 0x459f8b
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x459e80
mov byte [ebp - 0x11], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x459fa0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459fca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459ff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x348]
xor ecx, ebp
call fcn.0048f35c
add ebp, 0x34c
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp + 0x244]
push edx
lea eax, [ebp - 0x18]
push 0x4b8104
push eax
call fcn.00402d80
add esp, 0xc
lea ecx, [ebp + 0x140]
push ecx
lea edx, [ebp - 0x20]
push 0x4b8104
push edx
call fcn.00402d80
mov eax, dword [ebp - 0x20]
add esp, 0xc
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov esi, esp
push eax
call fcn.00409450
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
mov byte [ebp - 4], 3
call fcn.00409450
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.004595e0
test al, al
jne 0x459f71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x140]
push eax
lea ecx, [ebp + 0x244]
push ecx
push 0x615
push str.CUSBUtility::Dir_Copy
push str._s:_d:_CopyDirectory__:_Copy___s__to___s__failed_err___d_n
call fcn.0044b650
add esp, 0x18
jmp 0x459f8b