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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e65e3
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.004bbd0a
mov eax, 7
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], eax
mov eax, dword [0x5143cc]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x5143cc
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.0048d360
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.0048a620
cmp dword [eax + 0x18], esi
jb 0x418e25
mov eax, dword [eax + 4]
jmp 0x418e28
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x48], esi
jb 0x418e42
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004b83e9
add esp, 4
push edi
mov ecx, 0x515640
call fcn.00406cc0
xor ebx, ebx
cmp eax, ebx
jne 0x418eb1
mov eax, dword [0x5157fc]
cmp eax, ebx
je 0x418e8b
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.0040a870
lea edx, [esp + 0x4c]
push edx
call fcn.0048d580
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], bl
call fcn.0048d020
xor eax, eax
jmp 0x419054
mov eax, dword [0x515644]
push eax
lea eax, [esp + 0x2c]
call fcn.00418b80
add esp, 4
cmp eax, ebx
je 0x418f5b
mov edi, 6
push edi
mov dword [0x515690], edi
call fcn.0040cd20
mov eax, dword [0x5157fc]
cmp eax, ebx
je 0x418f14
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.0040a870
push str.One_instance_is_running
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea eax, [esp + 0x4c]
push eax
call fcn.0048d580
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], bl
call fcn.0048d020
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x418f54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x419054
call fcn.0047cd80
cmp eax, 2
jne 0x418f6a
call fcn.00420fb0
push str._Module_Init
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
call fcn.004191f0
cmp eax, ebx
jl 0x418fbd
push str.g_App.Run...
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
mov esi, 0x515640
call fcn.00406f00
mov edi, eax
push edi
push str.g_App.Run_return:_d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
mov esi, 8
jmp 0x418fbf
mov edi, ebx
call fcn.0040a870
lea ecx, [esp + 0x4c]
push ecx
call fcn.0048d580
call fcn.00420e30
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, ebx
je 0x41902e
mov eax, dword [0x5157fc]
cmp eax, ebx
je 0x41902a
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 [0x5157fc]
cmp eax, ebx
je 0x41902a
push ebx
push ebx
push 0x535
push eax
call esi
xor esi, esi
jmp 0x419033
mov esi, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], bl
call fcn.0048d020
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x419052
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.004b83ee
mov esp, ebp
pop ebp
ret 0x10