Function at 0x1001d520
Capabilities:
Accept command line arguments
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086136
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x100ad708]
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 dword [ebp - 0x68c], ecx
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0x684], ebx
call fcn.10059fd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Plugin.tpi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x464
lea eax, [ebp - 0x680]
push ebx
push eax
call fcn.10059fd0
mov eax, 0x5c
mov dword [ebp - 0x224], ebx
add esp, 0xc
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0x104
jge 0x1001d918
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x654]
push 0x104
push eax
call fcn.10060a68
push eax
call fcn.10007ec0
add esp, 0x10
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x224], eax
cmp eax, 0xffffffff
je 0x1001d95a
push ebx
lea eax, [ebp - 0x430]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x1001d682
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1001d675
cmp eax, 0xffffffff
je 0x1001d675
push eax
call esi
mov dword [ebp - 0x224], ebx
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001d918
lea eax, [ebp - 0x430]
push 0x5c
push eax
call fcn.1005ad47
mov esi, eax
lea eax, [ebp - 0x430]
push 0x2f
push eax
call fcn.1005ad47
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x1001d6b3
test esi, esi
je 0x1001d6ce
lea ecx, [ebp - 0x430]
test esi, esi
lea eax, [ebp - 0x430]
cmovne eax, esi
cmp ecx, eax
jb 0x1001d6c9
xor eax, eax
mov word [ecx], ax
jmp 0x1001d6ce
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x220], 1
mov edi, 1
nop dword [eax]
mov eax, dword [ebp - 0x68c]
cmp dword [eax + 0x10], 0
jne 0x1001d912
cmp dword [ebp - 0x220], 0
je 0x1001d75a
mov eax, dword [ebp - 0x680]
shr eax, 4
and eax, 1
je 0x1001d72d
cmp word [ebp - 0x654], 0x2e
jne 0x1001d72d
mov cx, word [ebp - 0x652]
test cx, cx
je 0x1001d731
cmp cx, 0x2e
jne 0x1001d72d
cmp word [ebp - 0x650], 0
je 0x1001d731
test eax, eax
je 0x1001d75a
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1001d95a
lea ecx, [ebp - 0x680]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
mov dword [ebp - 0x220], edi
jmp 0x1001d90a
lea eax, [ebp - 0x688]
mov dword [ebp - 0x688], 0
push eax
lea ecx, [ebp - 0x680]
call fcn.1001cdf0
mov esi, dword [ebp - 0x688]
mov byte [ebp - 4], 1
cmp dword [esi - 8], 4
jl 0x1001d7ba
push 4
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0x688]
call fcn.1001d490
push str..tpi
or ebx, 1
mov dword [ebp - 0x684], ebx
push dword [eax]
call fcn.1006101f
add esp, 8
test eax, eax
jne 0x1001d7ba
xor bl, bl
jmp 0x1001d7bc
mov bl, 1
mov eax, dword [ebp - 0x684]
test al, 1
je 0x1001d801
and eax, 0xfffffffe
mov dword [ebp - 0x684], eax
mov eax, dword [ebp - 0x690]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100ad4cc]
je 0x1001d801
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1001d801
mov eax, dword [ebp - 0x690]
add eax, 0xfffffff4
push eax
call fcn.1002f2ab
add esp, 4
test bl, bl
je 0x1001d819
cmp dword [ebp - 0x224], 0
jne 0x1001d8b4
xor edi, edi
jmp 0x1001d8dd
push esi
call fcn.1003c6d0
add esp, 4
test eax, eax
je 0x1001d8dd
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001d8a7
push str.CreateTrayClient
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001d8a7
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push ecx
push 1
call eax
mov ebx, eax
mov dword [ebp - 0x694], ebx
test ebx, ebx
je 0x1001d8a7
mov eax, dword [ebp - 0x68c]
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0xc]
mov edi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
call dword [edi + 0x24]
mov ecx, dword [ebp - 0x68c]
add ecx, 4
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x1001d89a
mov dword [eax], ebx
add dword [ecx + 4], 4
jmp 0x1001d8a7
lea edx, [ebp - 0x694]
push edx
push eax
call fcn.1001c850
cmp dword [ebp - 0x224], 0
jne 0x1001d8b4
xor edi, edi
jmp 0x1001d8dd
cmp dword [ebp - 0x220], 0
jne 0x1001d8c1
xor edi, edi
jmp 0x1001d8dd
lea eax, [ebp - 0x680]
push eax
push dword [ebp - 0x224]
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
mov edi, eax
mov dword [ebp - 0x220], edi
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0
cmp eax, dword [0x100ad4cc]
je 0x1001d904
or eax, 0xffffffff
add esi, 0xfffffff4
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x1001d904
push esi
call fcn.1002f2ab
add esp, 4
mov ebx, dword [ebp - 0x684]
test edi, edi
jne 0x1001d6e0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], 0
test eax, eax
je 0x1001d93e
cmp eax, 0xffffffff
je 0x1001d93e
push eax
call esi
mov dword [ebp - 0x224], 0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x220], 0
test eax, eax
je 0x1001d95a
cmp eax, 0xffffffff
je 0x1001d95a
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.1002ef19
mov esp, ebp
pop ebp
ret