Function at 0x42d570
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a6bd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
mov ebp, dword [esp + 0x17c]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x20], ecx
je 0x42d829
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, 0x4deccc
call fcn.00487a03
mov eax, dword [eax]
mov esi, 0x4d441c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x42d5e4
test cl, cl
je 0x42d5e0
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x42d5e4
add eax, 2
add esi, 2
test cl, cl
jne 0x42d5bc
xor eax, eax
jmp 0x42d5e9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
lea ecx, [esp + 0x14]
setne bl
call fcn.0048f641
test bl, bl
je 0x42d60a
push 0x4d441c
mov ecx, 0x4deccc
call fcn.0048fa1d
push 0x4deccc
lea ecx, [esp + 0x20]
call fcn.0048f3b6
push 0x4d481c
lea ecx, [esp + 0x20]
mov dword [esp + 0x180], edi
call fcn.0048fa1d
mov eax, dword [ebp + 4]
push edi
push eax
call fcn.0046d9e0
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 8
push 0x400
push edi
push ecx
call esi
cmp eax, edi
je 0x42d660
mov edx, dword [ebp + 4]
push 0x400
push edi
push edx
call esi
cmp eax, edi
jne 0x42d650
mov eax, dword [0x4d8094]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x184], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [esp + 0x188]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x42d78d
mov esi, 0x6100
lea eax, [esp + 0x2c]
push 0xa
lea ecx, [esi - 0x60ff]
push eax
push ecx
call fcn.00479ed6
add esp, 0xc
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call fcn.0048f7ca
push 0x4d6050
lea ecx, [esp + 0x14]
call fcn.0048fa1d
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
call fcn.0048fa1d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
add eax, 0xfffffffc
push eax
push edx
call fcn.00487a7f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], 2
call fcn.0048f77a
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 1
call fcn.0048f641
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00443cb0
test edi, edi
jne 0x42d741
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push ecx
push esi
push edi
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x42d75d
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0048f3b6
push esi
push 0
push ebp
mov ecx, ebx
call fcn.00435000
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc ecx
inc esi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x42d787
cmp esi, 0x61ff
jl 0x42d69e
mov eax, dword [esp + 0x14]
jmp 0x42d791
mov ebx, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42d7fa
mov eax, dword [0x4decb0]
push 0x74
test eax, eax
je 0x42d7ba
lea eax, [esp + 0x14]
push eax
call fcn.004108c0
add esp, 8
jmp 0x42d7c3
lea ecx, [esp + 0x14]
call fcn.004906bd
test edi, edi
jne 0x42d7db
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 4]
push ecx
push edi
push 1
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x42d804
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0048f3b6
push 0
push 1
push ebp
mov ecx, ebx
call fcn.00435000
jmp 0x42d804
push 0
push ebp
mov ecx, ebx
call fcn.00425180
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 0
call fcn.0048f641
lea ecx, [esp + 0x1c]
mov dword [esp + 0x17c], 0xffffffff
call fcn.0048f641
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x170
ret 8