Function at 0x419170
Capabilities:
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x51ef42
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b338]
xor eax, esp
push eax
lea eax, [esp + 0x308]
mov dword fs:[0], eax
mov esi, dword [esp + 0x318]
mov edi, dword [esp + 0x31c]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], edi
jne 0x4191d2
xor eax, eax
jmp 0x4195f1
cmp edi, ebx
je 0x4191cb
mov ebp, 7
mov eax, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419200
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0xa0]
call fcn.004021f0
push 3
push 0x5624c8
mov ecx, esi
mov dword [esp + 0x318], ebx
call fcn.00401d70
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov byte [esp + 0x310], 1
mov eax, edi
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419262
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x84]
call fcn.004021f0
mov eax, esi
push eax
mov byte [esp + 0x314], 2
call fcn.0040d600
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x310], 3
mov ecx, dword [esp + 0x80]
mov ebp, 8
cmp dword [esp + 0x94], ebp
jae 0x4192c2
lea ecx, [esp + 0x80]
lea edx, [esp + 0x18]
push edx
mov edx, 0x5630c8
call fcn.0040def0
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
jne 0x4192e2
mov dword [esp + 0x38], ebx
jmp 0x4192ff
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x38], eax
cmp dword [esp + 0xb0], ebp
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x2c], ebx
jae 0x41931a
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
je 0x41952d
jmp 0x419340
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xb4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x41952d
cmp word [esp + 0xe0], 0x2e
je 0x419340
mov ax, word [esp + 0xe2]
cmp ax, bx
je 0x419340
cmp ax, 0x2e
jne 0x419383
cmp word [esp + 0xe4], bx
je 0x419340
lea eax, [esp + 0xe0]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419390
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xe4]
push ecx
lea esi, [esp + 0x68]
call fcn.004021f0
test byte [esp + 0xb4], 0x10
je 0x419424
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x44]
call fcn.00401b60
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0x318], 4
call fcn.00401bd0
mov eax, esi
push eax
mov edx, str._.
call fcn.00401d40
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x4193fb
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x3c]
push edi
push eax
call fcn.00419170
cmp eax, ebx
lea ecx, [esp + 0x44]
jne 0x419520
mov byte [esp + 0x310], 3
call fcn.004022c0
jmp 0x419340
lea ecx, [esp + 0x60]
push ecx
call fcn.0040d600
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 4
cmp esi, eax
jbe 0x419446
call fcn.0042f791
mov eax, dword [esp + 0x20]
mov ebp, esi
cmp dword [esp + 0x1c], eax
mov esi, eax
jbe 0x419459
call fcn.0042f791
mov eax, dword [esp + 0x20]
cmp ebp, esi
je 0x419516
cmp ebp, eax
jb 0x41946a
call fcn.0042f791
mov edi, 8
cmp dword [ebp + 0x18], edi
jb 0x419479
mov edx, dword [ebp + 4]
jmp 0x41947c
lea edx, [ebp + 4]
mov eax, edx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419492
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x4c]
call fcn.004021f0
mov byte [esp + 0x310], 5
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x4194c2
lea eax, [esp + 0x64]
mov edi, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x48]
call fcn.00404b90
test eax, eax
jne 0x4194dd
add dword [esp + 0x2c], 1
mov byte [esp + 0x310], 3
cmp dword [esp + 0x5c], 8
jb 0x4194f9
mov edx, dword [esp + 0x48]
push edx
call fcn.0042f3a5
add esp, 4
mov eax, dword [esp + 0x20]
cmp ebp, eax
jb 0x41950a
call fcn.0042f791
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
add ebp, 0x1c
jmp 0x419448
mov ebp, 8
jmp 0x419340
mov dword [esp + 0x28], 1
call fcn.004022c0
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jle 0x41954e
cmp eax, dword [esp + 0x38]
jl 0x41954e
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x419574
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
push ecx
call fcn.004051b0
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call fcn.0042f3a5
add esp, 4
cmp dword [esp + 0x94], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jb 0x419599
mov eax, dword [esp + 0x80]
push eax
call fcn.0042f3a5
add esp, 4
cmp dword [esp + 0x78], ebp
mov esi, 7
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x4195c7
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0042f3a5
add esp, 4
cmp dword [esp + 0xb0], ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
jb 0x4195ed
mov edx, dword [esp + 0x9c]
push edx
call fcn.0042f3a5
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x308]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.0042f3aa
add esp, 0x300
ret 8