Function at 0x4228e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x59bedc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [0x65ec1c]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [ebx + 8]
lea edx, [esp + 0xc]
push ecx
push str._stemplate.dat
push edx
mov dword [esp + 0x274], 0
call fcn.0058148b
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x42296e
lea ecx, [esp + 0xc]
mov dword [esp + 0x268], eax
call fcn.005886c0
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
add esp, 0x264
ret
push ebp
push edi
mov edx, dword [0x65ec1c]
mov dword [esp + 0x10], edx
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x154]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x639028
push edx
mov byte [esp + 0x280], 1
call fcn.0058148b
mov eax, dword [esp + 0x20]
push 0x63b074
push eax
call fcn.0056dabf
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x422b41
push ebp
lea ecx, [esp + 0x2c]
push pe_nt_image_headers32
push ecx
call fcn.0056dc9a
add esp, 0xc
test eax, eax
je 0x422b34
mov ecx, 2
mov edi, str.version
lea esi, [esp + 0x28]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x422b34
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push 0x638fec
push ecx
call fcn.0056deb3
add esp, 0xc
cmp eax, 1
jne 0x422b34
cmp dword [esp + 0x24], 1
jne 0x422b34
push ebp
lea edx, [esp + 0x2c]
push pe_nt_image_headers32
push edx
call fcn.0056dc9a
add esp, 0xc
test eax, eax
je 0x422b34
push ebp
lea eax, [esp + 0x2c]
push pe_nt_image_headers32
push eax
call fcn.0056dc9a
add esp, 0xc
test eax, eax
je 0x422b34
mov ecx, 5
mov edi, str.name
lea esi, [esp + 0x28]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x422b34
lea eax, [esp + 0x2d]
test eax, eax
je 0x422b34
lea ecx, [esp + 0x2d]
push 0xd
push ecx
call fcn.0056c5f0
add esp, 8
test eax, eax
je 0x422a87
mov byte [eax], 0
lea edx, [esp + 0x2d]
push 0xa
push edx
call fcn.0056c5f0
add esp, 8
test eax, eax
je 0x422a9d
mov byte [eax], 0
mov eax, dword [0x65ec1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2d]
lea ecx, [esp + 0x1c]
push eax
push 0x638fa8
push ecx
mov byte [esp + 0x27c], 2
call fcn.0058148b
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push edx
push 0x638fa8
push eax
call fcn.0058148b
mov edi, dword [ebx + 0x14]
lea esi, [ebx + 0xc]
add esp, 0xc
lea ecx, [edi + 1]
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.00422e30
mov edx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
lea esi, [edx + edi*8]
mov ecx, esi
call fcn.005887f9
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.005887f9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x270], 3
call fcn.005886c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x270], 1
call fcn.005886c0
push ebp
call fcn.0056d8d8
mov esi, dword [esp + 0x24]
add esp, 4
lea edx, [esp + 0x128]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov byte [esp + 0x270], 0
lea ecx, [esp + 0x10]
je 0x422b6a
call fcn.005886c0
jmp 0x422970
call fcn.005886c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x270], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 0x268]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x264
ret