Function at 0x420316
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call fcn.0042abe0
push esi
mov dword [ebp - 0xc], eax
call fcn.0042abe0
cmp dword [ebp - 0xc], edi
mov dword [ebp - 0x24], eax
je 0x420732
cmp eax, edi
je 0x420732
push 0x44e390
push dword [ebp + 0x14]
call fcn.0041fb56
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 0x18], eax
jne 0x420380
push 3
pop esi
jmp 0x420766
lea ecx, [ebp - 0x164]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x42039d
xor esi, esi
jmp 0x420766
mov edi, str.path
test byte [ebp - 0x164], 0x10
jne 0x4204d2
test ebx, ebx
je 0x4203b9
push ebx
call fcn.0042abf0
lea eax, [ebp - 0x138]
push eax
call fcn.004207b2
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4203e7
lea eax, [ebp - 0x138]
push eax
push str._AutoUp__BA_RemoveOldFiles__ERROR:_Cannot_Get_Module_Name_OutOfMemory__:__s
push 1
call fcn.00408bf4
add esp, 0xc
jmp 0x420707
cmp dword [ebp + 0xc], 0
je 0x4203ff
push esi
push dword [ebp - 0xc]
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0042a810
test eax, eax
je 0x420415
push esi
push dword [ebp - 0xc]
push edi
push ebx
push dword [ebp + 8]
call fcn.0042a810
test eax, eax
jne 0x420707
push str.asc_kbc.sys
push ebx
call fcn.00429ec0
test eax, eax
je 0x420707
cmp dword [ebp - 8], 0
je 0x420436
push dword [ebp - 8]
call fcn.0042abf0
push dword [ebp - 0xc]
push dword [ebp + 0x14]
call fcn.0041fb56
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
je 0x420707
push dword [ebp + 0x14]
push eax
call fcn.00429ec0
test eax, eax
je 0x420707
lea eax, [ebp - 0x138]
push eax
push str._AutoUp__BA_RemoveOldFiles__INFO:_Delete_Engine_Module:__s
push 1
call fcn.00408bf4
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x420483
push dword [ebp - 0x10]
call fcn.0042abf0
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 0x14]
call fcn.0041fb56
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
je 0x420707
push eax
call fcn.0042018d
lea eax, [ebp - 0x138]
push eax
call fcn.00422aa6
pop ecx
cmp eax, 1
pop ecx
jne 0x420707
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 0x14]
call fcn.00422c50
pop ecx
pop ecx
jmp 0x420707
lea eax, [ebp - 0x138]
push 0x4559b4
push eax
call fcn.00429f70
test eax, eax
je 0x420707
lea eax, [ebp - 0x138]
push 0x4559b0
push eax
call fcn.00429f70
test eax, eax
je 0x420707
cmp dword [ebp - 4], 0
je 0x420512
push dword [ebp - 4]
call fcn.0042abf0
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 0x14]
call fcn.0041fb56
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
je 0x420707
push dword [ebp + 0x18]
push eax
call fcn.00429ec0
test eax, eax
je 0x420707
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x18], 0
je 0x420551
push dword [ebp - 0x18]
call fcn.0042abf0
push 0x44e390
push dword [ebp - 4]
call fcn.0041fb56
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
pop ecx
je 0x420707
lea ecx, [ebp - 0x2a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x420707
test byte [ebp - 0x2a4], 0x10
jne 0x4206c7
test ebx, ebx
je 0x42059c
push ebx
call fcn.0042abf0
lea eax, [ebp - 0x278]
push eax
call fcn.004207b2
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4206c7
cmp dword [ebp + 0xc], 0
je 0x4205cb
push esi
push dword [ebp - 0xc]
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0042a810
test eax, eax
je 0x4205e1
push esi
push dword [ebp - 0xc]
push edi
push ebx
push dword [ebp + 8]
call fcn.0042a810
test eax, eax
jne 0x4206c7
cmp dword [ebp - 8], 0
je 0x4205ef
push dword [ebp - 8]
call fcn.0042abf0
push dword [ebp - 0xc]
push dword [ebp + 0x14]
call fcn.0041fb56
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
je 0x4206c7
push dword [ebp - 4]
push eax
call fcn.00429ec0
test eax, eax
je 0x420655
cmp dword [ebp + 0x10], 0
je 0x42065a
push esi
push dword [ebp - 0x24]
push edi
push ebx
push dword [ebp + 0x10]
call fcn.0042a810
test eax, eax
jne 0x42065a
push dword [ebp - 8]
call fcn.0042abf0
push dword [ebp - 0x24]
push dword [ebp + 0x14]
call fcn.0041fb56
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
je 0x4206c7
push dword [ebp - 4]
push eax
call fcn.00429ec0
test eax, eax
jne 0x42065a
inc dword [ebp - 0x20]
jmp 0x4206c7
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x138]
push eax
push str._AutoUp__BA_RemoveOldFiles__INFO:_Delete_Engine_Module:__s_s
push 1
call fcn.00408bf4
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x420685
push dword [ebp - 0x10]
call fcn.0042abf0
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 4]
call fcn.0041fb56
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
je 0x4206c7
push eax
call fcn.0042018d
lea eax, [ebp - 0x278]
push eax
call fcn.00422aa6
pop ecx
cmp eax, 1
pop ecx
jne 0x4206c7
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 4]
call fcn.00422c50
pop ecx
pop ecx
lea eax, [ebp - 0x2a4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x420585
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x4206fb
push dword [ebp - 4]
call fcn.00420036
pop ecx
push dword [ebp - 4]
call fcn.0042abf0
and dword [ebp - 4], 0
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4203a2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x14], 0xffffffff
xor esi, esi
xor edi, edi
jmp 0x420735
push 3
pop esi
cmp dword [ebp - 4], edi
je 0x420742
push dword [ebp - 4]
call fcn.0042abf0
cmp dword [ebp - 8], edi
je 0x42074f
push dword [ebp - 8]
call fcn.0042abf0
cmp ebx, edi
je 0x420759
push ebx
call fcn.0042abf0
cmp dword [ebp - 0x10], edi
je 0x420766
push dword [ebp - 0x10]
call fcn.0042abf0
cmp dword [ebp - 0xc], edi
je 0x420773
push dword [ebp - 0xc]
call fcn.0042abf0
cmp dword [ebp - 0x24], edi
je 0x420780
push dword [ebp - 0x24]
call fcn.0042abf0
cmp dword [ebp - 0x18], edi
je 0x42078d
push dword [ebp - 0x18]
call fcn.0042abf0
cmp dword [ebp - 0x14], 0xffffffff
je 0x42079c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4207ab
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret