Function at 0x10033010
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push 0xcd0
mov eax, 0x100860db
call fcn.10063fad
mov edi, ecx
mov dword [ebp - 0xc9c], edi
xor ebx, ebx
mov dword [ebp - 0xc90], ebx
mov dword [ebp - 0xca0], ebx
cmp dword [edi + 0x410], ebx
jne 0x10033047
mov eax, 0x8004036f
jmp 0x100334ad
lea ecx, [ebp - 0xcdc]
call fcn.10027b13
mov dword [ebp - 4], ebx
lea ebx, [edi + 0x61c]
mov ecx, ebx
call fcn.10036c42
push edi
push 0x104
lea eax, [ebp - 0x830]
push eax
call fcn.10036c42
mov esi, 0x10002b48
push esi
push 0x104
lea eax, [ebp - 0x830]
push eax
call fcn.10036c42
lea eax, [edi + 0x208]
push eax
mov dword [ebp - 0xc8c], eax
push 0x104
lea eax, [ebp - 0xa38]
push eax
call fcn.10036c42
push esi
push 0x104
lea eax, [ebp - 0xa38]
push eax
call fcn.10036c42
xor esi, esi
push esi
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
je 0x1003333c
lea ecx, [ebp - 0xcdc]
call fcn.10027bdf
lea eax, [ebp - 0xc98]
push eax
mov ecx, ebx
mov dword [ebp - 0xc98], esi
call fcn.10036c42
cmp dword [ebp - 0xc98], esi
jle 0x100331bb
mov edi, dword [ebp - 0xc8c]
xor eax, eax
mov dword [ebp - 0xc94], eax
lea eax, [ebp - 0xc94]
push eax
push esi
mov ecx, ebx
call fcn.10036c42
mov eax, dword [ebp - 0xc94]
test eax, eax
je 0x100331a8
lea ecx, [ebp - 0xc8c]
push ecx
xor edx, edx
push edx
mov dword [ebp - 0xc8c], edx
push dword [eax + 8]
lea ecx, [ebp - 0xcdc]
call fcn.10036c42
test eax, eax
je 0x100331a8
cmp dword [ebp - 0xc8c], 0
jne 0x100331a8
push edi
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.10036c42
mov eax, dword [ebp - 0xc94]
push dword [eax + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10036c42
push 0x10002c2c
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10036c42
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.10036c42
inc esi
cmp esi, dword [ebp - 0xc98]
jl 0x1003310b
mov edi, dword [ebp - 0xc9c]
xor eax, eax
push edi
mov word [ebp - 0xc5c], ax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x628]
push eax
call fcn.10036c42
push 0x10002c38
push ebx
lea eax, [ebp - 0x628]
push eax
call fcn.10036c42
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0xc8c], eax
cmp eax, 0xffffffff
je 0x10033468
cmp word [ebp - 0xc5c], 0
je 0x10033336
push 2
pop esi
push edi
push ebx
lea eax, [ebp - 0x420]
push eax
call fcn.10036c42
lea edx, [ebp - 0x420]
lea ecx, [edx + 2]
xor ebx, ebx
mov ax, word [edx]
add edx, esi
cmp ax, bx
jne 0x10033236
sub edx, ecx
lea ecx, [ebp - 0xc5c]
sar edx, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, word [ebp - 0xc90]
jne 0x1003324d
sub ecx, ebx
sar ecx, 1
lea eax, [edx + 1]
add eax, ecx
mov ebx, 0x104
cmp eax, ebx
ja 0x10033322
lea eax, [ebp - 0xc5c]
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
call fcn.10036c42
lea eax, [edi + 0x208]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.10036c42
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
xor ebx, ebx
mov ax, word [edx]
add edx, esi
cmp ax, bx
jne 0x100332a4
sub edx, ecx
lea ecx, [ebp - 0xc5c]
sar edx, 1
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, word [ebp - 0xc90]
jne 0x100332bb
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + 1]
add eax, edx
mov ebx, 0x104
cmp eax, ebx
ja 0x10033322
lea eax, [ebp - 0xc5c]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.10036c42
xor eax, eax
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.kernel32.dll_CopyFileW]
xor eax, eax
mov word [ebp - 0xc5c], ax
lea eax, [ebp - 0xc88]
push eax
push dword [ebp - 0xc8c]
call dword [sym.imp.kernel32.dll_FindNextFileW]
cmp word [ebp - 0xc5c], 0
jne 0x1003321d
mov eax, dword [ebp - 0xc8c]
push eax
jmp 0x10033462
call dword [sym.imp.kernel32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
jne 0x10033477
xor eax, eax
mov word [ebp - 0xc5c], ax
lea eax, [edi + 0x208]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x628]
push eax
call fcn.10036c42
push 0x10002c44
push ebx
lea eax, [ebp - 0x628]
push eax
call fcn.10036c42
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10033468
cmp word [ebp - 0xc5c], 0
je 0x10033461
mov edi, dword [ebp - 0xc8c]
push edi
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.10036c42
lea edx, [ebp - 0x420]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, esi
cmp ax, word [ebp - 0xc90]
jne 0x100333cf
sub edx, ecx
lea ecx, [ebp - 0xc5c]
lea eax, [ecx + 2]
sar edx, 1
mov dword [ebp - 0xc8c], eax
mov ax, word [ecx]
add ecx, esi
cmp ax, word [ebp - 0xc90]
jne 0x100333f0
sub ecx, dword [ebp - 0xc8c]
lea eax, [edx + 1]
sar ecx, 1
add eax, ecx
cmp eax, 0x104
ja 0x1003344d
lea eax, [ebp - 0xc5c]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.10036c42
lea eax, [ebp - 0x420]
push eax
call fcn.10036c42
xor eax, eax
mov word [ebp - 0xc5c], ax
lea eax, [ebp - 0xc88]
push eax
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
cmp word [ebp - 0xc5c], 0
jne 0x100333b4
mov edi, dword [ebp - 0xc9c]
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, edi
call fcn.10036c42
mov ebx, dword [ebp - 0xca0]
jmp 0x1003347c
mov ebx, 0x80004005
mov ecx, edi
call fcn.10034383
mov ecx, dword [edi + 0x410]
test ecx, ecx
je 0x1003349c
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov dword [edi + 0x410], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcdc]
call fcn.10027b68
mov eax, ebx
call fcn.10064030
ret