Function at 0x486400
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 0x50f8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x550144]
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, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486444
test al, 0x10
jne 0x486455
push esi
call fcn.00487730
add esp, 4
test eax, eax
je 0x486d2b
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486d47
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x26c], eax
push ebx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0
call fcn.0044f3f0
test al, al
jne 0x4864b2
test ebx, ebx
jne 0x486491
xor ecx, ecx
jmp 0x4864a5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486496
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x26c]
call fcn.0044f580
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4864f9
lea edx, [ecx - 1]
test edx, edx
js 0x486d5b
cmp edx, ecx
jg 0x486d5b
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x4864f9
cmp eax, 0x2f
je 0x4864f9
push 1
push 0x536b50
lea ecx, [ebp - 0x26c]
call fcn.0048c7b0
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486d51
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
push esi
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.0044f3f0
test al, al
jne 0x486553
test esi, esi
jne 0x486532
xor ecx, ecx
jmp 0x486546
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486537
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.0044f580
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x486597
lea edx, [ecx - 1]
test edx, edx
js 0x486d5b
cmp edx, ecx
jg 0x486d5b
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x486597
cmp eax, 0x2f
je 0x486597
push 1
push 0x536b50
lea ecx, [ebp - 0x268]
call fcn.0048c7b0
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486d65
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 4
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486d6f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x284], esi
mov byte [ebp - 4], 5
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486d79
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x278], eax
push ebx
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 6
call fcn.0044f3f0
test al, al
jne 0x486633
test ebx, ebx
jne 0x486612
xor ecx, ecx
jmp 0x486626
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486617
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x278]
call fcn.0044f580
push 0x537c6c
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 8
or ebx, 0xffffffff
mov edx, dword [eax]
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
mov dword [ebp - 0x274], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x27c], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4866e4
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x270], eax
jl 0x4866d5
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4866d5
mov eax, dword [ebp - 0x27c]
push eax
call fcn.0048d290
mov dword [ebp - 0x27c], eax
add esp, 4
mov eax, dword [ebp - 0x270]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4866c4
mov eax, dword [ebp - 0x274]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x27c]
add eax, 0x10
mov dword [ebp - 0x278], eax
jmp 0x4866e4
push dword [edx - 0xc]
lea ecx, [ebp - 0x278]
push edx
call fcn.0044f580
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486705
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
je 0x486c8c
test byte [ebp - 0x260], 0x10
je 0x48684b
mov edx, 0x5359cc
lea ecx, [ebp - 0x234]
nop
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x486766
test ax, ax
je 0x486762
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x486766
add ecx, 4
add edx, 4
test ax, ax
jne 0x486740
xor eax, eax
jmp 0x48676b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4869cd
mov ecx, 0x5359d0
lea eax, [ebp - 0x234]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4867a6
test dx, dx
je 0x4867a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4867a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x486780
xor eax, eax
jmp 0x4867ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4869cd
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0048c050
mov ebx, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0048c050
mov byte [ebp - 4], 0xa
push dword [ebx]
push dword [eax]
call fcn.00486400
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp - 0x264]
add esp, 0x20
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486821
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4869cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4869cd
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x274], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x264], eax
cmp eax, ecx
je 0x4868e6
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x4868d1
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4868d1
push dword [ebp - 0x264]
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x264], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4868c6
mov edi, dword [ebp - 0x274]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x264]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
jmp 0x4868e6
push dword [edx - 0xc]
lea ecx, [ebp - 0x280]
push edx
call fcn.0044f580
mov edi, dword [ebp - 0x280]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486907
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x274], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x264], eax
cmp eax, ecx
je 0x4869a2
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x48698d
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x48698d
push dword [ebp - 0x264]
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x264], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x486982
mov esi, dword [ebp - 0x274]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x264]
lea esi, [eax + 0x10]
mov dword [ebp - 0x284], esi
jmp 0x4869a2
push dword [edx - 0xc]
lea ecx, [ebp - 0x284]
push edx
call fcn.0044f580
mov esi, dword [ebp - 0x284]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4869c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x486c80
nop dword [eax + eax]
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
je 0x486b11
mov ecx, 0x5359cc
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x486a2e
test dx, dx
je 0x486a2a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x486a2e
add eax, 4
add ecx, 4
test dx, dx
jne 0x486a08
xor eax, eax
jmp 0x486a33
sbb eax, eax
or eax, 1
test eax, eax
je 0x486c65
mov ecx, 0x5359d0
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x486a6c
test dx, dx
je 0x486a68
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x486a6c
add eax, 4
add ecx, 4
test dx, dx
jne 0x486a46
xor eax, eax
jmp 0x486a71
sbb eax, eax
or eax, 1
test eax, eax
je 0x486c65
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0048c050
mov ebx, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0048c050
mov byte [ebp - 4], 0xe
push dword [ebx]
push dword [eax]
call fcn.00486400
mov byte [ebp - 4], 0xd
or ebx, 0xffffffff
mov edx, dword [ebp - 0x264]
add esp, 0x20
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486ae7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486c65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x486c65
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ebx, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x486b90
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x486b7b
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x486b7b
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x270], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x486b70
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x270]
lea edi, [eax + 0x10]
mov dword [ebp - 0x280], edi
jmp 0x486b90
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x280]
call fcn.0044f580
mov edi, dword [ebp - 0x280]
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x288]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486bb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 0x10
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x486c37
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x486c22
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x486c22
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x270], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x486c17
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x270]
lea esi, [eax + 0x10]
mov dword [ebp - 0x284], esi
jmp 0x486c37
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x284]
call fcn.0044f580
mov esi, dword [ebp - 0x284]
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486c5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4869f0
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486cad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486cc8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x486ce3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486d04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x486d26
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.004de51d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80070057
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
int3