Function at 0x40bc80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4712ef
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x491040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2fc], edx
mov esi, ecx
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30c], esi
xor edi, edi
push 0x483718
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x2f4], edi
call fcn.004153f0
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2f0]
cmp dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x70]
push ecx
cmova eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x300], eax
cmp eax, 0xffffffff
je 0x40c18c
nop word [eax + eax]
test byte [ebp - 0x2f0], 0x10
je 0x40c08a
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd50
sub ecx, edx
lea eax, [ebp - 0x2c4]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00416690
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 0xf
mov esi, dword [ebp - 0x28]
cmova eax, esi
cmp dword [ebp - 0x18], 1
jne 0x40bd9a
movzx eax, byte [eax]
cmp al, 0x2e
jne 0x40bd8d
xor eax, eax
jmp 0x40bd92
sbb eax, eax
or eax, 1
test eax, eax
je 0x40be30
cmp edx, 0xf
lea ecx, [ebp - 0x28]
cmova ecx, esi
cmp dword [ebp - 0x18], 2
jne 0x40bdc5
movzx eax, byte [ecx]
cmp al, 0x2e
jne 0x40bdbc
movzx eax, byte [ecx + 1]
cmp al, 0x2e
jne 0x40bdbc
xor eax, eax
jmp 0x40bdc1
sbb eax, eax
or eax, 1
test eax, eax
je 0x40be30
push dword [ebp - 0x310]
lea ecx, [ebp - 0x370]
call fcn.00415a90
mov byte [ebp - 4], 3
or edi, 1
push 0x483724
mov edx, eax
mov dword [ebp - 0x2f4], edi
lea ecx, [ebp - 0x358]
call fcn.00415490
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 4
or edi, 2
mov dword [ebp - 0x2f4], edi
cmp dword [ecx + 0x14], 0xf
jbe 0x40be12
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push ecx
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
mov byte [ebp - 0x2f5], 1
test eax, eax
jne 0x40be37
mov byte [ebp - 0x2f5], 0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x2f4]
test al, 2
je 0x40be62
and eax, 0xfffffffd
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x2f4], eax
call fcn.00414300
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 4], 2
test al, 1
je 0x40be81
and eax, 0xfffffffe
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x2f4], eax
call fcn.00414300
cmp byte [ebp - 0x2f5], 0
je 0x40c072
mov byte [ebp - 4], 5
mov eax, SysReAllocString
mov edi, dword [ebp - 0x2fc]
mov esi, dword [ebp - 0x18]
mov edx, dword [edi + 0x10]
sub eax, edx
cmp eax, esi
jb 0x40c1e0
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x40beb7
mov ecx, dword [edi]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push esi
cmova eax, dword [ebp - 0x28]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x340]
call fcn.00418480
mov edi, dword [ebp - 0x2f4]
lea edx, [ebp - 0x340]
or edi, 8
lea ecx, [ebp - 0x58]
push str.idb_
mov dword [ebp - 0x2f4], edi
call fcn.00415490
add esp, 4
mov byte [ebp - 4], 6
and edi, 0xfffffff7
mov dword [ebp - 0x2f4], edi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x340]
call fcn.00414300
mov byte [ebp - 4], 8
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x48]
sub eax, ecx
cmp eax, 1
jb 0x40c1e0
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
push 1
cmova eax, dword [ebp - 0x58]
push 0x483740
push ecx
push eax
push ecx
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x328]
call fcn.00418480
or edi, 0x20
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x2f4], edi
lea eax, [ebp - 0x328]
cmp dword [ebp - 0x314], 0xf
push ecx
cmova eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
and edi, 0xffffffdf
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x2f4], edi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x328]
call fcn.00414300
cmp esi, 0xffffffff
je 0x40c064
nop word [eax + eax]
test byte [ebp - 0x1b0], 0x10
je 0x40c047
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x184]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bfe0
sub eax, edx
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00416690
mov byte [ebp - 4], 9
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x30]
cmova eax, edx
cmp esi, 1
jne 0x40c019
cmp byte [eax], 0x2e
je 0x40c035
cmp ecx, 0xf
lea eax, [ebp - 0x40]
cmova eax, edx
cmp esi, 2
jne 0x40c0ab
mov ecx, 0x2e2e
cmp word [eax], cx
jne 0x40c0ab
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00414300
mov esi, dword [ebp - 0x304]
lea eax, [ebp - 0x1b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bfb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00414300
jmp 0x40c078
mov edi, dword [ebp - 0x2f4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00414300
mov eax, dword [ebp - 0x300]
lea ecx, [ebp - 0x2f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x300]
jmp 0x40bd20
push dword [ebp - 0x304]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x48]
cmova ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
sub eax, edx
mov dword [ebp - 0x2fc], edx
cmp esi, eax
ja 0x40c115
cmp dword [ebp - 0x44], 0xf
lea eax, [edx + esi]
push dword [ebp - 0x30]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x48], eax
cmova esi, dword [ebp - 0x58]
push ecx
lea eax, [esi + edx]
push eax
call fcn.0044d210
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ebp - 0x2fc]
add eax, esi
mov byte [eax + ecx], 0
lea eax, [ebp - 0x58]
jmp 0x40c12d
push esi
push ecx
mov byte [ebp - 0x2fc], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x2fc]
push esi
call fcn.00416b80
mov ecx, dword [ebp - 0x308]
push eax
call fcn.00413080
or edi, 4
mov dword [ebp - 0x2f4], edi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00414300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00414300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00414300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00414300
mov eax, dword [ebp - 0x308]
jmp 0x40c1c5
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x308]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x482956
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00416690
or edi, 4
mov dword [ebp - 0x2f4], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00414300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004347ab
mov esp, ebp
pop ebp
ret
call fcn.004068e0
int3