Function at 0x40dc10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43456e
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x449214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa94], edi
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0xa90], ebx
mov dword [ebp - 0xaa0], ebx
call fcn.004199a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.plugin.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, 0x5c
mov dword [ebp - 0x630], ebx
mov word [ebp - 0x634], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x62c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0x104
jge 0x40e154
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa60]
push 0x104
push eax
call fcn.0041c64d
push eax
call fcn.00404b20
add esp, 0x10
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x630], eax
cmp eax, 0xffffffff
je 0x40e196
push ebx
lea eax, [ebp - 0x83c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x40dd61
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x40dd54
cmp eax, 0xffffffff
je 0x40dd54
push eax
call esi
mov dword [ebp - 0x630], ebx
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e154
lea eax, [ebp - 0x83c]
push 0x5c
push eax
call fcn.00419afa
mov esi, eax
lea eax, [ebp - 0x83c]
push 0x2f
push eax
call fcn.00419afa
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x40dd92
test esi, esi
je 0x40ddad
lea ecx, [ebp - 0x83c]
test esi, esi
lea eax, [ebp - 0x83c]
cmovne eax, esi
cmp ecx, eax
jb 0x40dda8
xor eax, eax
mov word [ecx], ax
jmp 0x40ddad
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x62c], 1
nop word [eax + eax]
cmp dword [edi + 0x50], 0
jne 0x40e14e
cmp dword [ebp - 0x62c], 0
je 0x40de3b
mov eax, dword [ebp - 0xa8c]
shr eax, 4
and eax, 1
je 0x40de07
cmp word [ebp - 0xa60], 0x2e
jne 0x40de07
mov cx, word [ebp - 0xa5e]
test cx, cx
je 0x40de0b
cmp cx, 0x2e
jne 0x40de07
cmp word [ebp - 0xa5c], 0
je 0x40de0b
test eax, eax
je 0x40de3b
cmp dword [ebp - 0x630], 0
jne 0x40de1b
xor esi, esi
jmp 0x40e146
lea eax, [ebp - 0xa8c]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
mov dword [ebp - 0x62c], esi
jmp 0x40e146
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa8c]
call fcn.0040d3c0
mov edi, dword [ebp - 0xaa0]
mov byte [ebp - 4], 1
mov esi, dword [edi - 0xc]
cmp esi, 4
jl 0x40df18
jg 0x40de7f
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa9c]
call fcn.0040cb60
mov esi, dword [ebp - 0xa9c]
jmp 0x40def9
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x40de91
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40de9f
call fcn.004057d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
lea ebx, [edi - 8]
lea ebx, [ebx + esi*2]
test ecx, ecx
je 0x40e1b2
test ebx, ebx
je 0x40e1bc
mov eax, dword [ecx]
push 2
push 4
call dword [eax]
test eax, eax
je 0x40e1c6
cmp dword [eax + 8], 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xa9c], esi
jl 0x40e1bc
push 8
push ebx
xor eax, eax
mov dword [esi - 0xc], 4
push 8
push esi
mov word [esi + 8], ax
call fcn.0040a810
mov ebx, dword [ebp - 0xa90]
add esp, 0x10
push str..dll
or ebx, 3
push esi
mov dword [ebp - 0xa90], ebx
call fcn.0041f430
add esp, 8
test eax, eax
jne 0x40df1e
xor bl, bl
jmp 0x40df20
mov esi, dword [ebp - 0xa9c]
mov bl, 1
mov eax, dword [ebp - 0xa90]
mov dword [ebp - 4], 1
test al, 1
je 0x40df52
and eax, 0xfffffffe
add esi, 0xfffffff0
mov dword [ebp - 0xa90], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40df52
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x40e0ec
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004199a0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, 0x449184
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004199a0
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebx]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.004057d0
test eax, eax
je 0x40e1b2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0xa98], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa98]
call fcn.00404c60
test al, al
jne 0x40e022
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa98]
call fcn.0040cfb0
mov esi, dword [ebp - 0xa98]
push edi
push esi
call fcn.0041f430
add esp, 8
mov byte [ebp - 4], 1
add esi, 0xfffffff0
test eax, eax
je 0x40e0d7
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e056
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 8
cmp ebx, 0x4491a4
jl 0x40dfa0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e0ec
push str.CreateTrayClient
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov dword [ebp - 0xa98], edx
test edx, edx
je 0x40e0ce
mov esi, dword [ebp - 0xa94]
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
cmp eax, ecx
je 0x40e0af
nop
cmp dword [eax], edx
je 0x40e0ab
add eax, 4
cmp eax, ecx
jne 0x40e0a0
cmp eax, ecx
jne 0x40e0ec
cmp dword [esi + 0x4c], ecx
je 0x40e0bc
mov dword [ecx], edx
add dword [esi + 0x48], 4
jmp 0x40e0ec
lea eax, [ebp - 0xa98]
push eax
push ecx
lea ecx, [esi + 0x44]
call fcn.0040c660
jmp 0x40e0ec
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40e0ec
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e0ec
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x630]
test eax, eax
jne 0x40e0fa
xor esi, esi
jmp 0x40e11e
cmp dword [ebp - 0x62c], 0
jne 0x40e107
xor esi, esi
jmp 0x40e11e
lea ecx, [ebp - 0xa8c]
push ecx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
mov esi, eax
mov dword [ebp - 0x62c], esi
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e13a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0xa94]
mov ebx, dword [ebp - 0xa90]
test esi, esi
jne 0x40ddc0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x62c], 0
test eax, eax
je 0x40e17a
cmp eax, 0xffffffff
je 0x40e17a
push eax
call esi
mov dword [ebp - 0x630], 0
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x62c], 0
test eax, eax
je 0x40e196
cmp eax, 0xffffffff
je 0x40e196
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bfe
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404c00
push 0x80070057
call fcn.00404c00
call fcn.00407870
int3