Function at 0x4181f0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bfef
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4bc704]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x27c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
mov eax, dword [ebp + 0xc]
je 0x41857e
cmp dword [eax - 0xc], ebx
je 0x41857e
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x418274
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp + 0xc]
push edx
call esi
cmp eax, ebx
jne 0x418274
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
jmp 0x418585
push 0x24c
lea ecx, [ebp - 0x25c]
push ebx
push ecx
mov dword [ebp - 0x260], ebx
call fcn.0046ae60
push 0x49fbc8
lea edx, [ebp - 0x274]
push edi
push edx
call fcn.00409300
mov eax, dword [eax]
add esp, 0x18
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4182d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x4182e5
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
jmp 0x418585
lea ecx, [ebp - 0x260]
push ecx
push edi
mov dword [ebp - 0x270], 1
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x418549
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x234]
call fcn.00404d20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
mov ecx, 0x49f2f4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41834c
cmp dx, bx
je 0x418348
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41834c
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x418326
xor eax, eax
jmp 0x418351
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x41850c
lea eax, [ebp - 0x264]
push eax
mov ecx, 0x49fbd0
call fcn.004187b0
add esp, 4
test al, al
jne 0x41850c
mov ecx, dword [ebp - 0x27c]
push 0x49f46c
push ecx
lea edx, [ebp - 0x280]
push edx
call fcn.00409300
lea ecx, [ebp - 0x264]
push ecx
push eax
lea edx, [ebp - 0x268]
push edx
mov byte [ebp - 4], 2
call fcn.0040a4b0
add esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x49f46c
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x278]
push edx
call fcn.00409300
lea ecx, [ebp - 0x264]
push ecx
push eax
lea edx, [ebp - 0x26c]
push edx
mov byte [ebp - 4], 5
call fcn.0040a4b0
add esp, 0x18
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418429
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [ebp - 0x260], 1
je 0x418444
mov ecx, dword [ebp - 0x268]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x260], 0x10
mov eax, dword [ebp - 0x26c]
je 0x41847c
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x284], esp
mov esi, esp
call fcn.00404780
lea edx, [ebp - 0x268]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.004181f0
add esp, 8
cmp eax, ebx
jmp 0x41848d
mov ecx, dword [ebp - 0x268]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x418495
mov dword [ebp - 0x270], ebx
lea edx, [ebp - 0x260]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x418535
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418541
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x418305
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418576
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
jmp 0x4185a3
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4185a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.00467ce1
mov esp, ebp
pop ebp
ret