Function at 0x405d58
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0xf8]
sub esp, 0x178
mov eax, dword [0x4206f0]
xor eax, ebp
mov dword [ebp + 0xf4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x100]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor esi, esi
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x419478
lea ecx, [ebp - 0x30]
call fcn.00401e88
push esi
push edi
mov edi, 0x421cbc
push 0x421c98
mov ecx, edi
call fcn.0040281c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x421cec], eax
mov dword [ebp - 0x38], esi
mov ebx, 0x41985c
jmp 0x405df4
push str.UnregServer
push dword [ebp - 0x34]
call fcn.0040bcc9
pop ecx
pop ecx
test eax, eax
je 0x405f13
push str.RegServer
push dword [ebp - 0x34]
call fcn.0040bcc9
pop ecx
pop ecx
test eax, eax
je 0x405f2b
push ebx
push dword [ebp - 0x34]
call fcn.0040295b
pop ecx
mov dword [ebp - 0x34], eax
pop ecx
cmp eax, esi
jne 0x405dc6
push str.GlobalIGFXTRAY
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
call ebx
cmp dword [ebp - 0x34], esi
je 0x405f69
cmp eax, 0xb7
je 0x405f69
push str.igfxtraymutext
lea ecx, [ebp - 0x30]
call fcn.00401e6b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x405e4c
lea eax, [ebp - 0x2c]
push 0x104
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040b931
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
jae 0x405e6a
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x34], eax
call ebx
cmp dword [ebp - 0x34], esi
je 0x405f69
cmp eax, 0xb7
je 0x405f60
push 1
push 4
mov ecx, edi
call fcn.00402dc2
push 0x28
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040af80
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
add esp, 0xc
lea eax, [ebp - 0x64]
mov ebx, str.igfxtrayClass
push eax
mov dword [ebp - 0x60], 0x405c99
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_RegisterClassA]
push str.igfxtrayWindow
lea ecx, [ebp - 0x30]
call fcn.00401e6b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x405edf
lea eax, [ebp - 0x2c]
push esi
push dword [ebp - 0x3c]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
push esi
push dword [0x421d40]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call fcn.00402992
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
jmp 0x405f4c
push esi
push esi
push 0x64
push edi
call fcn.004053c1
push esi
push esi
mov ecx, edi
call fcn.00404aad
mov dword [ebp - 0x38], eax
jmp 0x405f69
push esi
push 1
push 0x64
push edi
call fcn.004053c1
push esi
push 1
mov ecx, edi
call fcn.00404a3e
jmp 0x405f26
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
call ebx
test eax, eax
jne 0x405f42
mov ecx, edi
call fcn.00402e04
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401b54
mov ecx, dword [ebp + 0xf4]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040affa
add ebp, 0xf8
leave
ret 0x10