Function at 0x401770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor esi, esi
mov dword [ebp + 0x10], eax
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
call fcn.0040134f
mov edi, 0x416aa8
push edi
call fcn.00405b30
pop ecx
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00401265
push dword [ebp + 8]
mov edi, 0x416ab0
mov dword [0x416b20], 0x4125b0
mov dword [0x416aa4], edi
push 0x416b40
push edi
mov dword [0x416ab0], 0x84
mov dword [0x416b14], 0x300
call fcn.00402d42
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x412630
mov dword [0x416b34], eax
push ebx
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
call fcn.0040149d
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
je 0x401869
push str.UnregServer
push eax
call fcn.004064de
pop ecx
test eax, eax
pop ecx
je 0x401839
push str.RegServer
push dword [ebp + 0x10]
call fcn.004064de
pop ecx
test eax, eax
pop ecx
je 0x40184d
push ebx
push dword [ebp + 0x10]
jmp 0x401801
push esi
push esi
push 0x64
push edi
call fcn.004019d4
push esi
push esi
push edi
call fcn.0040300f
jmp 0x401861
push esi
push 1
push 0x64
push edi
call fcn.004019d4
push esi
push 1
push edi
call fcn.00402e96
mov dword [ebp - 4], eax
jmp 0x4019ba
push str.GlobalIGFXTRAY
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
je 0x4019ba
cmp eax, 0xb7
je 0x4019ba
mov ebx, str.igfxtraymutext
push ebx
call fcn.00405b30
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401265
mov eax, dword [ebp - 0x10]
cmp eax, esi
jne 0x4018b4
mov eax, 0x40e288
push 0x104
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00406444
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp eax, esi
jne 0x4018d5
mov eax, 0x40e288
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
je 0x4019ba
cmp eax, 0xb7
je 0x4019b1
push 1
push 4
push edi
call fcn.00402dc5
push 0x28
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004055d0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x4014d5
mov dword [ebp - 0x18], str.igfxtrayClass
call dword [sym.imp.USER32.dll_RegisterClassA]
mov ebx, str.igfxtrayWindow
push ebx
call fcn.00405b30
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401265
mov eax, dword [ebp - 0x10]
cmp eax, esi
jne 0x401955
mov eax, 0x40e288
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push str.igfxtrayClass
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
push esi
push dword [0x416b8c]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call fcn.00401730
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
push esi
push esi
lea eax, [ebp - 0x58]
push esi
push eax
call ebx
test eax, eax
je 0x4019ab
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x58]
push esi
push eax
jmp 0x401992
push edi
call fcn.00402e5a
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
lea ecx, [ebp - 0x14]
call fcn.0040134f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10