Function at 0x40dc20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43457e
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.004199b0
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 0x40e164
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa60]
push 0x104
push eax
call fcn.0041c65d
push eax
call fcn.00404b30
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 0x40e1a6
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 0x40dd71
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp - 0x630]
test eax, eax
je 0x40dd64
cmp eax, 0xffffffff
je 0x40dd64
push eax
call esi
mov dword [ebp - 0x630], ebx
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40e164
lea eax, [ebp - 0x83c]
push 0x5c
push eax
call fcn.00419b0a
mov esi, eax
lea eax, [ebp - 0x83c]
push 0x2f
push eax
call fcn.00419b0a
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x40dda2
test esi, esi
je 0x40ddbd
lea ecx, [ebp - 0x83c]
test esi, esi
lea eax, [ebp - 0x83c]
cmovne eax, esi
cmp ecx, eax
jb 0x40ddb8
xor eax, eax
mov word [ecx], ax
jmp 0x40ddbd
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x62c], 1
nop word [eax + eax]
cmp dword [edi + 0x50], 0
jne 0x40e15e
cmp dword [ebp - 0x62c], 0
je 0x40de4b
mov eax, dword [ebp - 0xa8c]
shr eax, 4
and eax, 1
je 0x40de17
cmp word [ebp - 0xa60], 0x2e
jne 0x40de17
mov cx, word [ebp - 0xa5e]
test cx, cx
je 0x40de1b
cmp cx, 0x2e
jne 0x40de17
cmp word [ebp - 0xa5c], 0
je 0x40de1b
test eax, eax
je 0x40de4b
cmp dword [ebp - 0x630], 0
jne 0x40de2b
xor esi, esi
jmp 0x40e156
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 0x40e156
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa8c]
call fcn.0040d3d0
mov edi, dword [ebp - 0xaa0]
mov byte [ebp - 4], 1
mov esi, dword [edi - 0xc]
cmp esi, 4
jl 0x40df28
jg 0x40de8f
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa9c]
call fcn.0040cb70
mov esi, dword [ebp - 0xa9c]
jmp 0x40df09
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x40dea1
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40deaf
call fcn.004057e0
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 0x40e1c2
test ebx, ebx
je 0x40e1cc
mov eax, dword [ecx]
push 2
push 4
call dword [eax]
test eax, eax
je 0x40e1d6
cmp dword [eax + 8], 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xa9c], esi
jl 0x40e1cc
push 8
push ebx
xor eax, eax
mov dword [esi - 0xc], 4
push 8
push esi
mov word [esi + 8], ax
call fcn.0040a820
mov ebx, dword [ebp - 0xa90]
add esp, 0x10
push str..dll
or ebx, 3
push esi
mov dword [ebp - 0xa90], ebx
call fcn.0041f440
add esp, 8
test eax, eax
jne 0x40df2e
xor bl, bl
jmp 0x40df30
mov esi, dword [ebp - 0xa9c]
mov bl, 1
mov eax, dword [ebp - 0xa90]
mov dword [ebp - 4], 1
test al, 1
je 0x40df62
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 0x40df62
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x40e0fc
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004199b0
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.004199b0
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.004057e0
test eax, eax
je 0x40e1c2
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.00404c70
test al, al
jne 0x40e032
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa98]
call fcn.0040cfc0
mov esi, dword [ebp - 0xa98]
push edi
push esi
call fcn.0041f440
add esp, 8
mov byte [ebp - 4], 1
add esi, 0xfffffff0
test eax, eax
je 0x40e0e7
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e066
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 8
cmp ebx, 0x44919c
jl 0x40dfb0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e0fc
push str.CreateTrayClient
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov dword [ebp - 0xa98], edx
test edx, edx
je 0x40e0de
mov esi, dword [ebp - 0xa94]
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
cmp eax, ecx
je 0x40e0bf
nop
cmp dword [eax], edx
je 0x40e0bb
add eax, 4
cmp eax, ecx
jne 0x40e0b0
cmp eax, ecx
jne 0x40e0fc
cmp dword [esi + 0x4c], ecx
je 0x40e0cc
mov dword [ecx], edx
add dword [esi + 0x48], 4
jmp 0x40e0fc
lea eax, [ebp - 0xa98]
push eax
push ecx
lea ecx, [esi + 0x44]
call fcn.0040c670
jmp 0x40e0fc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40e0fc
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e0fc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x630]
test eax, eax
jne 0x40e10a
xor esi, esi
jmp 0x40e12e
cmp dword [ebp - 0x62c], 0
jne 0x40e117
xor esi, esi
jmp 0x40e12e
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 0x40e14a
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 0x40ddd0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x62c], 0
test eax, eax
je 0x40e18a
cmp eax, 0xffffffff
je 0x40e18a
push eax
call esi
mov dword [ebp - 0x630], 0
mov eax, dword [ebp - 0x630]
mov dword [ebp - 0x62c], 0
test eax, eax
je 0x40e1a6
cmp eax, 0xffffffff
je 0x40e1a6
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.00417c0e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404c10
push 0x80070057
call fcn.00404c10
call fcn.00407880
int3