Function at 0x418cf0
Capabilities:
Access peb ldr_data
Get number of processors
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e66e3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0x4f2528
push ebx
mov dword [esp + 0xb0], ebx
call fcn.004bbdf7
mov eax, 7
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], eax
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x5143ac
mov dword [esp + 0x4c], vtable.CQMSetupLog.0
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
call edx
add eax, 0x10
mov dword [esp + 0x8c], eax
lea esi, [esp + 0x4c]
mov byte [esp + 0xa8], 1
call fcn.0048d450
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x14]
mov esi, 8
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea ebx, [esp + 0x30]
call fcn.0048a810
cmp dword [eax + 0x18], esi
jb 0x418de5
mov eax, dword [eax + 4]
jmp 0x418de8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x48], esi
jb 0x418e02
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004b84d9
add esp, 4
push edi
mov ecx, 0x515620
call fcn.00406bd0
xor ebx, ebx
cmp eax, ebx
jne 0x418e71
mov eax, dword [0x5157dc]
cmp eax, ebx
je 0x418e4b
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x4a
lea edx, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x2711
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0040a650
lea edx, [esp + 0x4c]
push edx
call fcn.0048d670
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], bl
call fcn.0048d110
xor eax, eax
jmp 0x419014
mov eax, dword [0x515624]
push eax
lea eax, [esp + 0x2c]
call fcn.00418b40
add esp, 4
cmp eax, ebx
je 0x418f1b
mov edi, 6
push edi
mov dword [0x515670], edi
call fcn.0040cad0
mov eax, dword [0x5157dc]
cmp eax, ebx
je 0x418ed4
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x4a
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x2711
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0040a650
push str.One_instance_is_running
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea eax, [esp + 0x4c]
push eax
call fcn.0048d670
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], bl
call fcn.0048d110
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x418f14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x419014
call fcn.0047ce40
cmp eax, 2
jne 0x418f2a
call fcn.00420f10
push str._Module_Init
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
call fcn.004191b0
cmp eax, ebx
jl 0x418f7d
push str.g_App.Run...
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
mov esi, 0x515620
call fcn.00406e10
mov edi, eax
push edi
push str.g_App.Run_return:_d
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
mov esi, 8
jmp 0x418f7f
mov edi, ebx
call fcn.0040a650
lea ecx, [esp + 0x4c]
push ecx
call fcn.0048d670
call fcn.00420d90
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, ebx
je 0x418fee
mov eax, dword [0x5157dc]
cmp eax, ebx
je 0x418fea
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x4a
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x2711
mov dword [esp + 0x34], edx
call esi
mov eax, dword [0x5157dc]
cmp eax, ebx
je 0x418fea
push ebx
push ebx
push 0x535
push eax
call esi
xor esi, esi
jmp 0x418ff3
mov esi, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], bl
call fcn.0048d110
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x419012
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004b84de
mov esp, ebp
pop ebp
ret 0x10