Function at 0x418897
Capabilities:
Enumerate files on windows

Disassembly:
push 0x50c
mov eax, 0x4c95bc
call fcn.00496d1f
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, dword [ebp + 0xc]
call fcn.0041c82f
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x418c52
lea eax, [ebp - 0x2c0]
push eax
call fcn.00426dcd
pop ecx
lea eax, [ebp - 0x2c0]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
call fcn.0040458e
mov ebx, str..lnk
mov byte [ebp - 4], 1
push ebx
call fcn.004a338c
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x260]
call fcn.0040414c
push 0x250
lea eax, [ebp - 0x510]
push 0
push eax
call fcn.0049f230
add esp, 0xc
lea ecx, [ebp - 0x510]
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418c3c
push str.__programid
lea ecx, [ebp - 0x2a8]
call fcn.004022ea
mov byte [ebp - 4], 2
test byte [ebp - 0x510], 0x10
jne 0x418c0e
and dword [ebp - 0x514], 0
lea eax, [ebp - 0x514]
push eax
push 0x4dd810
push 1
push 0
push 0x4dd880
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x418c0e
mov eax, dword [ebp - 0x514]
lea edx, [ebp - 0x518]
and dword [ebp - 0x518], 0
push edx
push 0x4dd870
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x418c02
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x2c0]
and dword [ebp - 0x234], 0
lea ecx, [ebp - 0x248]
push eax
call fcn.0040458e
push 0x4d3930
mov byte [ebp - 4], 3
call fcn.004a338c
pop ecx
push eax
push 0x4d3930
lea ecx, [ebp - 0x248]
call fcn.0040414c
lea eax, [ebp - 0x4e4]
push eax
call fcn.004a338c
pop ecx
push eax
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x248]
call fcn.0040414c
mov eax, dword [ebp - 0x518]
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push 0
cmovae edx, dword [ebp - 0x248]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x418be7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049f230
mov eax, dword [ebp - 0x514]
lea edx, [ebp - 0x218]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x418be7
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.004022ea
push 0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x290]
call fcn.0041ca13
mov ecx, eax
cmp ecx, 0xffffffff
je 0x418bd8
and dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x298]
add eax, ecx
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041c7cc
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0x20
cmovae eax, dword [ebp - 0x230]
push 0
push dword [ebp - 0x220]
mov byte [ebp - 4], 5
push eax
call fcn.00417399
add esp, 0x10
cmp eax, 0xffffffff
je 0x418b6b
and dword [ebp - 0x268], 0
xor ecx, ecx
push eax
push ecx
lea eax, [ebp - 0x230]
mov word [ebp - 0x278], cx
push eax
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x264], 7
call fcn.0041c7cc
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.004043d8
lea ecx, [ebp - 0x278]
call fcn.00404061
push str.qhe9q84tw21mn
lea ecx, [ebp - 0x230]
call fcn.004143ae
test al, al
jne 0x418bcd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x418b97
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00416835
jmp 0x418ba6
lea ecx, [ebp - 0x230]
push ecx
push eax
mov ecx, esi
call fcn.00416a23
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x418bbe
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.00416835
jmp 0x418bcd
lea ecx, [ebp - 0x248]
push ecx
push eax
mov ecx, edi
call fcn.00416a23
lea ecx, [ebp - 0x230]
call fcn.00404061
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.00404061
mov eax, dword [ebp - 0x518]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00404061
mov eax, dword [ebp - 0x514]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x510]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418966
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x2a8]
call fcn.00404061
lea ecx, [ebp - 0x260]
call fcn.00404061
lea ecx, [ebp - 0x2c0]
call fcn.00404061
call fcn.00496cc9
ret 8