Function at 0x4226e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46428b
mov eax, dword fs:[0]
push eax
mov eax, 0x1170
call fcn.0044ced0
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x116c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x1184]
mov dword fs:[0], eax
xor esi, esi
push 0x3ff
lea eax, [esp + 0xd85]
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], esi
mov byte [esp + 0xd8c], 0
call fcn.0044cf00
push 0x3ff
lea ecx, [esp + 0x991]
push esi
push ecx
mov byte [esp + 0x998], 0
call fcn.0044cf00
add esp, 0x18
lea ecx, [esp + 0x164]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040c8e0
cmp dword [ebx + 4], esi
mov dword [esp + 0x118c], esi
jle 0x4227bf
lea edi, [ebx + 0x420]
lea ebx, [ebx]
push edi
lea ebp, [edi - 0x410]
call fcn.00412100
push ebp
push edi
mov dword [ebp - 4], eax
call fcn.00412150
add esp, 0xc
test eax, eax
je 0x422e67
add esi, 1
add edi, 0x1414
cmp esi, dword [ebx + 4]
jl 0x422790
lea edx, [esp + 0xd80]
push edx
mov ecx, ebx
call fcn.00422140
test eax, eax
je 0x422e4f
xor eax, eax
jmp 0x4227e0
mov cl, byte [esp + eax + 0xd80]
mov byte [esp + eax + 0x980], cl
add eax, 1
test cl, cl
jne 0x4227e0
lea eax, [esp + 0x980]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x422800
mov ecx, dword [str..dll]
mov dx, word [0x46f738]
mov dword [eax], ecx
mov cl, byte [0x46f73a]
mov word [eax + 4], dx
lea edx, [esp + 0x24]
mov byte [eax + 6], cl
push edx
lea eax, [esp + 0x984]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x422e67
xor eax, eax
jmp 0x422850
mov cl, byte [esp + eax + 0xd80]
mov byte [esp + eax + 0x980], cl
add eax, 1
test cl, cl
jne 0x422850
lea edi, [esp + 0x980]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x422870
mov cx, word [0x469140]
lea eax, [esp + 0x50]
mov word [edi], cx
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422890
lea edi, [esp + 0x980]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4228a5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x980]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00412100
xor ebp, ebp
add esp, 4
cmp dword [ebx + 4], ebp
mov dword [esp + 0x18], eax
jle 0x422b2a
lea edi, [ebx + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, dword [edi - 4]
jne 0x4229a3
lea ecx, [esp + 0x970]
push ecx
lea edx, [esp + 0x984]
push edx
call fcn.00412150
add esp, 8
test eax, eax
je 0x422e57
mov eax, 0x10
mov ecx, edi
lea edx, [esp + 0x970]
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x422938
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x422920
test eax, eax
je 0x42299d
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x422987
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x422999
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x422987
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x422999
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x422987
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x422999
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x422999
test esi, esi
mov ebx, dword [esp + 0x14]
mov eax, 1
jg 0x42299f
or eax, 0xffffffff
jmp 0x42299f
mov ebx, dword [esp + 0x14]
xor eax, eax
test eax, eax
je 0x4229ba
add ebp, 1
add edi, 0x1414
cmp ebp, dword [ebx + 4]
jl 0x4228df
jmp 0x422b2a
mov eax, dword [ebx + 4]
cmp eax, 0x14
jge 0x422a32
mov ecx, dword [esp + 0x18]
imul eax, eax, 0x1414
mov dword [eax + ebx + 0xc], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x970]
imul edx, edx, 0x1414
lea eax, [edx + ebx + 0x10]
mov dword [eax], ecx
mov edx, dword [esp + 0x974]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x978]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x97c]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 4]
imul eax, eax, 0x1414
lea ecx, [esp + 0x980]
lea edx, [eax + ebx + 0x420]
jmp 0x422a20
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x422a20
add dword [ebx + 4], 1
cmp dword [ebx + 4], 0x14
jge 0x422b2a
push 0x400
lea ecx, [esp + 0x984]
push 0
push ecx
call fcn.0044cf00
add esp, 0xc
xor eax, eax
jmp 0x422a60
mov cl, byte [esp + eax + 0xd80]
mov byte [esp + eax + 0x980], cl
add eax, 1
test cl, cl
jne 0x422a60
lea eax, [esp + 0x980]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x422a80
mov edx, dword [str._rasadhlp.dll]
mov ecx, dword [0x46f718]
mov dword [eax], edx
mov edx, dword [0x46f71c]
mov dword [eax + 4], ecx
mov cx, word [0x46f720]
mov dword [eax + 8], edx
lea edx, [esp + 0x980]
mov word [eax + 0xc], cx
push edx
lea ecx, [esp + 0x168]
call fcn.0040c950
test eax, eax
je 0x422b2a
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422ad0
sub eax, edx
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x16c]
call fcn.0040c9a0
test eax, eax
je 0x422b2a
lea ecx, [esp + 0x164]
call fcn.0040cb80
test eax, eax
je 0x422b2a
mov edx, dword [ebx + 4]
imul edx, edx, 0x1414
lea ecx, [esp + 0x980]
lea edx, [edx + ebx + 0x420]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x422b18
add dword [ebx + 4], 1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x422e4f
jmp 0x422b50
xor eax, eax
mov cl, byte [esp + eax + 0xd80]
mov byte [esp + eax + 0x980], cl
add eax, 1
test cl, cl
jne 0x422b52
lea edi, [esp + 0x980]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x422b71
mov dx, word [0x469140]
lea eax, [esp + 0x50]
mov word [edi], dx
mov edx, eax
jmp 0x422b90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422b90
lea edi, [esp + 0x980]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x422ba5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x980]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00412100
add esp, 4
cmp dword [ebx + 4], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
jle 0x422e37
lea edi, [ebx + 0x10]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [edi - 4]
jne 0x422c9e
lea edx, [esp + 0x970]
push edx
lea eax, [esp + 0x984]
push eax
call fcn.00412150
add esp, 8
test eax, eax
je 0x422e57
mov eax, 0x10
mov ecx, edi
lea edx, [esp + 0x970]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x422c3b
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x422c23
test eax, eax
je 0x422c98
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x422c8a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x422c98
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x422c8a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x422c98
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x422c8a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x422c98
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x422c98
test esi, esi
mov eax, 1
jg 0x422c9a
or eax, 0xffffffff
jmp 0x422c9a
xor eax, eax
test eax, eax
je 0x422cbd
mov eax, dword [esp + 0x14]
add eax, 1
add edi, 0x1414
cmp eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
jl 0x422be8
jmp 0x422e37
mov eax, dword [ebx + 4]
cmp eax, 0x14
jge 0x422e37
mov edx, dword [esp + 0x18]
imul eax, eax, 0x1414
mov dword [eax + ebx + 0xc], edx
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x970]
imul eax, eax, 0x1414
mov dword [eax + ebx + 0x10], ecx
mov edx, dword [esp + 0x974]
lea eax, [eax + ebx + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x978]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x97c]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 4]
imul eax, eax, 0x1414
lea ecx, [esp + 0x980]
lea edx, [eax + ebx + 0x420]
mov esi, 1
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, esi
add edx, esi
test al, al
jne 0x422d30
add dword [ebx + 4], esi
cmp dword [ebx + 4], 0x14
jge 0x422e37
push 0x400
lea ecx, [esp + 0x984]
push 0
push ecx
call fcn.0044cf00
add esp, 0xc
xor eax, eax
jmp 0x422d70
mov cl, byte [esp + eax + 0xd80]
mov byte [esp + eax + 0x980], cl
add eax, esi
test cl, cl
jne 0x422d70
lea eax, [esp + 0x980]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x422d90
mov edx, dword [str._rasadhlp.dll]
mov ecx, dword [0x46f718]
mov dword [eax], edx
mov edx, dword [0x46f71c]
mov dword [eax + 4], ecx
mov cx, word [0x46f720]
mov dword [eax + 8], edx
lea edx, [esp + 0x980]
mov word [eax + 0xc], cx
push edx
lea ecx, [esp + 0x168]
call fcn.0040c950
test eax, eax
je 0x422e37
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x422de0
sub eax, edx
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x16c]
call fcn.0040c9a0
test eax, eax
je 0x422e37
lea ecx, [esp + 0x164]
call fcn.0040cb80
test eax, eax
je 0x422e37
mov edx, dword [ebx + 4]
imul edx, edx, 0x1414
lea ecx, [esp + 0x980]
lea edx, [edx + ebx + 0x420]
mov al, byte [ecx]
mov byte [edx], al
add ecx, esi
add edx, esi
test al, al
jne 0x422e28
add dword [ebx + 4], esi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422b50
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x422e67
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x164]
mov dword [esp + 0x118c], 0xffffffff
call fcn.0040c920
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x116c]
xor ecx, esp
call fcn.0044ce74
add esp, 0x117c
ret