Function at 0x414fd0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5416fb
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x595790]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x595790]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4a4]
mov esi, dword [esp + 0x49c]
mov edi, dword [esp + 0x4a0]
mov dword [esp + 0x20], eax
xor bl, bl
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415040
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push 0x20a
lea ecx, [esp + 0x278]
push 0
push ecx
mov dword [esp + 0x4a0], 0
call fcn.00518320
add esp, 0xc
lea edx, [esp + 0x274]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41522e
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x41522e
mov eax, dword [edi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x415220
jmp 0x4150c0
mov esi, dword [esp + 0x24]
and esi, 0x10
lea ecx, [esp + 0x50]
mov eax, 0x572758
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4150f6
test dx, dx
je 0x4150f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4150f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4150d0
xor eax, eax
jmp 0x4150fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4151fd
lea ecx, [esp + 0x50]
mov eax, 0x57275c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415136
test dx, dx
je 0x415132
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415136
add eax, 4
add ecx, 4
test dx, dx
jne 0x415110
xor eax, eax
jmp 0x41513b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4151fd
mov eax, dword [edi + 4]
push eax
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4151fd
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [edi + 0xc]
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
call eax
mov bl, al
add esp, 0x10
test bl, bl
jne 0x415215
test esi, esi
je 0x4151fd
cmp byte [edi + 8], al
je 0x4151fd
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x415190
xor eax, eax
jmp 0x4151a4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415195
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004019d0
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4151b6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
call fcn.004054e0
push 1
push 0x56e5bc
lea ecx, [esp + 0x20]
call fcn.004054e0
mov ebp, dword [esp + 0x18]
push ebp
lea edx, [esp + 0x54]
push edi
push edx
call fcn.00414fd0
mov bl, al
add esp, 0xc
test bl, bl
jne 0x415215
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4150c0
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x10]
mov dword [esp + 0x494], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00515ce5
add esp, 0x484
ret