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

Disassembly:
push 0xffffffffffffffff
push 0x45cd6d
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x738], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x750]
mov dword fs:[0], eax
mov eax, dword [ecx]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ecx
mov esi, edx
jbe 0x42295b
add eax, 0xffffffff
push 0x206
mov dword [ecx], eax
lea eax, [esp + 0x54a]
push ebp
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea edi, [ebp + 1]
mov word [esp + 0x550], bp
call fcn.00446fa0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x342]
push ebp
push ecx
mov word [esp + 0x348], bp
call fcn.00446fa0
add esp, 0xc
push 0x250
lea edx, [esp + 0xf0]
push ebp
push edx
call fcn.00446fa0
add esp, 0xc
push 0xffffffffffffffff
mov ebx, 7
push ebp
mov eax, esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
mov word [esp + 0x6c], bp
call fcn.00406d10
mov dword [esp + 0x758], ebp
mov eax, dword [esp + 0x74]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4225d9
call fcn.00441e46
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x4225e8
lea eax, [esp + 0x64]
cmp word [eax + esi*2], 0x5c
je 0x4225ff
push 1
push 0x4624bc
lea ecx, [esp + 0x68]
call fcn.00406eb0
push 3
push 0x46571c
lea esi, [esp + 0x4c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
call fcn.00406f80
lea eax, [esp + 0x98]
push eax
mov edx, esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x75c], 1
call fcn.0041ff30
add esp, 4
mov esi, 8
mov byte [esp + 0x758], 3
cmp dword [esp + 0x5c], esi
jb 0x42265a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0xb0], esi
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
jae 0x42267e
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x544]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x422685
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x422908
cmp edi, ebp
je 0x4228ff
mov ecx, dword [esp + 0x20]
cmp dword [ecx], ebp
jbe 0x4228ff
lea eax, [esp + 0x118]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], bp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4226f0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x11c]
push edx
lea esi, [esp + 0x84]
call fcn.00406f80
mov byte [esp + 0x758], 4
mov eax, dword [esp + 0x90]
push 0x463e84
mov edi, 1
mov ecx, esi
call fcn.00411070
test eax, eax
je 0x4228bf
mov eax, dword [esp + 0x90]
push 0x465724
mov edi, 2
mov ecx, esi
call fcn.00411070
test eax, eax
je 0x4228bf
test byte [esp + 0xec], 0x10
je 0x4228bf
lea eax, [esp + 0x118]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x422781
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x11c]
push eax
lea esi, [esp + 0x30]
call fcn.00406f80
mov ecx, esi
push ecx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x75c], 5
call fcn.004287f0
add esp, 4
mov esi, 8
mov byte [esp + 0x758], bl
cmp dword [esp + 0x40], esi
jb 0x4227db
mov edx, dword [esp + 0x2c]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0xcc], esi
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
jae 0x4227ff
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x33c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x422806
lea ecx, [esp + 0x33c]
call fcn.00422990
test eax, eax
je 0x422848
mov eax, dword [esp + 0xc8]
push str.all_users
mov edi, 9
lea ecx, [esp + 0xb8]
call fcn.00411070
test eax, eax
jne 0x4228a5
lea eax, [esp + 0x60]
push eax
lea ebx, [esp + 0x11c]
lea esi, [esp + 0xd4]
call fcn.00408960
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, esi
push ecx
mov ebx, 8
push edx
mov byte [esp + 0x760], bl
call fcn.00422100
add esp, 8
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0xe8], ebx
jb 0x4228a0
mov eax, dword [esp + 0xd4]
push eax
call fcn.004415cb
add esp, 4
mov ebx, 7
cmp dword [esp + 0xcc], 8
jb 0x4228bf
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.004415cb
add esp, 4
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xec]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [esp + 0x758], 3
cmp dword [esp + 0x94], 8
mov edi, eax
jb 0x4226b9
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004415cb
add esp, 4
jmp 0x4226b9
mov eax, dword [esp + 0x24]
mov esi, 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0xb0], esi
jb 0x422928
mov edx, dword [esp + 0x9c]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x78], esi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], ebp
mov word [esp + 0x9c], bp
jb 0x422951
mov eax, dword [esp + 0x64]
push eax
call fcn.004415cb
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x42295f
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x750]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x738]
xor ecx, esp
call fcn.004414cc
add esp, 0x748
ret