Function at 0x422640
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479c51
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4a3110]
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]
xor ebx, ebx
mov dword [ebp - 0x348], ebx
mov esi, ecx
mov dword [ebp - 0x34c], edi
mov dword [ebp - 0x360], ebx
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x358], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x10], ebx
jne 0x4226ae
lea eax, [ebp - 0x360]
push eax
mov ecx, edi
call fcn.00422040
jmp 0x422ca2
push 0x24c
lea ecx, [ebp - 0x33c]
push ebx
push ecx
mov dword [ebp - 0x340], ebx
call fcn.0042b970
add esp, 0xc
push 0xffffffffffffffff
push 0x47ea94
lea ecx, [ebp - 0x48]
call fcn.0041f770
mov edi, eax
lea edx, [ebp - 0x2c]
push esi
push edx
mov byte [ebp - 4], 1
call fcn.00414a70
push edi
push eax
lea eax, [ebp - 0xd4]
push eax
mov byte [ebp - 4], 2
call fcn.0041e8f0
add esp, 0x14
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x422713
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042a9e1
add esp, 4
mov edi, 7
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], esi
jb 0x422739
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
push 0xffffffffffffffff
mov word [ebp - 0x48], cx
push 0x486144
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.0041f770
push eax
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 6
call fcn.0041e8f0
add esp, 0xc
mov byte [ebp - 4], 8
cmp dword [ebp - 0xdc], esi
jb 0x42278d
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.0042a9e1
add esp, 4
mov eax, dword [ebp - 0x9c]
xor edx, edx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], dx
cmp dword [ebp - 0x88], esi
jae 0x4227b6
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
jne 0x42282f
mov esi, dword [ebp - 0x34c]
lea edx, [ebp - 0x360]
push edx
mov ecx, esi
call fcn.00422040
cmp dword [ebp - 0x88], 8
jb 0x4227fb
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0xc0], 8
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
jb 0x422828
mov edx, dword [ebp - 0xd4]
push edx
call fcn.0042a9e1
add esp, 4
mov eax, esi
jmp 0x422ca4
test byte [ebp - 0x340], 0x10
je 0x422acc
xor eax, eax
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 9
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422860
sub eax, edx
sar eax, 1
xor ecx, ecx
push eax
lea edx, [ebp - 0x314]
mov word [ebp - 0x80], cx
push edx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
call fcn.00401f10
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
call fcn.00401710
cmp dword [ebp - 0x6c], esi
jb 0x4228af
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0042a9e1
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
xor ecx, ecx
push 1
mov word [ebp - 0x2c], cx
push 0x47e588
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00401f10
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.00401710
cmp dword [ebp - 0x18], esi
jb 0x422907
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
or dword [ebp - 0x348], 2
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x422919
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0xb8]
cmp dword [ebp - 0xa4], esi
jae 0x422930
lea eax, [ebp - 0xb8]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422956
cmp dx, bx
je 0x422952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422956
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x422930
xor eax, eax
jmp 0x42295b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4229ce
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
push 2
xor edx, edx
push 0x48613c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00401f10
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x10
call fcn.00401710
cmp dword [ebp - 0x18], esi
jb 0x4229ae
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042a9e1
add esp, 4
or dword [ebp - 0x348], 4
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0xb8]
call fcn.0041d920
mov byte [ebp - 0x341], bl
test al, al
je 0x4229d5
mov byte [ebp - 0x341], 1
test byte [ebp - 0x348], 4
je 0x422a02
and dword [ebp - 0x348], 0xfffffffb
cmp dword [ebp - 0x50], esi
jb 0x4229f6
mov eax, dword [ebp - 0x64]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
test byte [ebp - 0x348], 2
mov dword [ebp - 4], 0xb
je 0x422a2a
and dword [ebp - 0x348], 0xfffffffd
cmp dword [ebp - 0x34], esi
jb 0x422a2a
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042a9e1
add esp, 4
cmp byte [ebp - 0x341], bl
je 0x422a4e
mov byte [ebp - 4], 8
cmp dword [ebp - 0xa4], esi
jb 0x422bd8
mov eax, dword [ebp - 0xb8]
push eax
jmp 0x422bd0
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x422a5a
test al, 1
je 0x422a32
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0041e8f0
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0x11
call fcn.00414a70
add esp, 0x14
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0x12
call fcn.00422280
cmp dword [ebp - 0x18], esi
jb 0x422aa6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x422a32
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042a9e1
add esp, 4
jmp 0x422a32
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x422adc
test al, 2
je 0x422bd8
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 0x13
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422af5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x314]
xor edx, edx
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.00401f10
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x14
call fcn.00401710
cmp dword [ebp - 0x50], esi
jb 0x422b41
mov edx, dword [ebp - 0x64]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0xd4]
push edx
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0x15
call fcn.0041e8f0
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0x16
call fcn.00414a70
add esp, 0x14
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0x17
call fcn.00422280
cmp dword [ebp - 0x18], esi
jb 0x422b9a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x6c], esi
jb 0x422bb7
mov edx, dword [ebp - 0x80]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], esi
jb 0x422bd8
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042a9e1
add esp, 4
mov eax, dword [ebp - 0x350]
lea edx, [ebp - 0x340]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42282f
mov ecx, dword [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x34c]
lea edx, [ebp - 0x360]
push edx
mov ecx, edi
call fcn.00422040
cmp dword [ebp - 0x88], 8
jb 0x422c2d
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0xc0], 8
mov esi, 7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
jb 0x422c5f
mov edx, dword [ebp - 0xd4]
push edx
call fcn.0042a9e1
add esp, 4
mov dword [ebp - 0xc0], esi
mov esi, dword [ebp - 0x360]
xor eax, eax
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
cmp esi, ebx
je 0x422ca2
mov ecx, dword [ebp - 0x34c]
mov eax, dword [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x354]
push edx
push eax
push esi
call fcn.00420930
push esi
call fcn.0042a9e1
add esp, 0x14
mov eax, edi
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.0042b571
mov esp, ebp
pop ebp
ret 8