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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d91aa
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x511070]
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 esi, edx
mov ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487e12
test al, 0x10
jne 0x487e21
mov ecx, esi
call fcn.00488900
test eax, eax
je 0x488408
push ebx
lea ecx, [ebp - 0x268]
call fcn.0041c9e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x268]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x487e6a
lea ecx, [edx - 1]
test ecx, ecx
js 0x487ec5
cmp ecx, edx
jg 0x487ec5
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x487e6a
cmp eax, 0x2f
je 0x487e6a
push str.0s
lea ecx, [ebp - 0x268]
call fcn.0041c1b0
push esi
lea ecx, [ebp - 0x264]
call fcn.0041c9e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x487eb0
lea ecx, [edx - 1]
test ecx, ecx
js 0x487ec5
cmp ecx, edx
jg 0x487ec5
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x487eb0
cmp eax, 0x2f
je 0x487eb0
push str.0s
lea ecx, [ebp - 0x264]
call fcn.0041c1b0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x487ecf
push 0x80004005
call fcn.0041ce60
push 0x80070057
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
mov byte [ebp - 4], 2
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x487ef6
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x274], edi
push ebx
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 3
call fcn.0041c9e0
push 0x4fa994
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 5
call fcn.0041c740
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x270]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487f65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x488369
test byte [ebp - 0x260], 0x10
je 0x4880aa
mov edx, 0x4ec430
lea ecx, [ebp - 0x234]
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x487fc6
test ax, ax
je 0x487fc2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x487fc6
add ecx, 4
add edx, 4
test ax, ax
jne 0x487fa0
xor eax, eax
jmp 0x487fcb
sbb eax, eax
or eax, 1
test eax, eax
je 0x488158
mov ecx, 0x4e79dc
lea eax, [ebp - 0x234]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x488006
test dx, dx
je 0x488002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x488006
add eax, 4
add ecx, 4
test dx, dx
jne 0x487fe0
xor eax, eax
jmp 0x48800b
sbb eax, eax
or eax, 1
test eax, eax
je 0x488158
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x26c]
call fcn.0041c030
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x280]
call fcn.0041c030
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebx]
mov ecx, dword [eax]
call fcn.00487dd0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x280]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488080
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488158
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x488158
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x26c]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 8
call fcn.0041c740
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4880f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x26c]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 9
call fcn.0041c740
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488142
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x274]
mov esi, dword [ebp - 0x278]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48835d
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
je 0x48829a
mov ecx, 0x4ec430
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4881b6
test dx, dx
je 0x4881b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4881b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x488190
xor eax, eax
jmp 0x4881bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x488342
mov ecx, 0x4e79dc
lea eax, [ebp - 0x234]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4881f6
test dx, dx
je 0x4881f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4881f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4881d0
xor eax, eax
jmp 0x4881fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x488342
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x280]
call fcn.0041c030
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x26c]
call fcn.0041c030
add esp, 4
mov byte [ebp - 4], 0xb
mov edx, dword [ebx]
mov ecx, dword [eax]
call fcn.00487dd0
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [ebp - 0x26c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488270
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488342
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x488342
push eax
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x284]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xc
call fcn.0041c740
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4882e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x288]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xd
call fcn.0041c740
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x288]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48832c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x274]
mov esi, dword [ebp - 0x278]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x488173
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48838a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4883a5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4883c0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4883e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x488403
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.004a474b
mov esp, ebp
pop ebp
ret