Function at 0x4114a0
Capabilities:
Check mutex on windows
Enumerate gui resources
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1cc
push ebx
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov dword [0x4290e8], 0x425dd8
mov dword [0x428d88], 0x429078
mov ecx, dword [esp + 0x1d8]
mov dword [0x429078], 0x84
push ecx
push ebx
push 0x429078
mov dword [0x4290dc], 0x300
call fcn.004118d0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x4290fc], eax
mov dword [0x429100], ebx
call fcn.00417373
add esp, 4
cmp eax, ebx
je 0x41153a
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x41153c
xor eax, eax
cmp eax, ebx
mov dword [0x429100], eax
je 0x41154b
mov dword [0x429104], ebx
push 0x4290ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.WM_ATLGETHOST
call esi
push str.WM_ATLGETCONTROL
mov dword [0x428d84], eax
call esi
lea edx, [esp + 0x10]
mov dword [0x428d80], eax
mov eax, dword [0x42907c]
push edx
mov esi, 0x30
push str.AtlAxWin
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x4115ef
mov eax, dword [0x42907c]
push 0x7f00
push ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x411ad0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 6
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], str.AtlAxWin
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x4290ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.WIL.P3dsetup.mutex
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 8], esi
je 0x41163f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41163f
push ebx
push 0x411860
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
add esp, 0x1cc
ret 0x10
push edi
mov edi, dword [esp + 0x1e4]
cmp byte [edi], bl
je 0x411708
push ebp
xor edx, edx
xor ebp, ebp
mov al, byte [edi]
cmp al, bl
je 0x41165e
cmp al, 0x20
je 0x411662
cmp al, 9
jne 0x411665
inc edi
jmp 0x411654
mov al, byte [edi]
cmp al, bl
je 0x41167c
cmp al, 0x20
je 0x41167c
cmp al, 0x3d
je 0x41167c
mov al, byte [edx + edi + 1]
inc edx
cmp al, bl
jne 0x41166b
mov al, byte [edx + edi]
lea esi, [edx + edi + 1]
cmp al, 0x3d
jne 0x4116a5
mov al, byte [esi]
mov cl, 0x20
cmp al, 0x22
jne 0x411692
inc esi
mov cl, 0x22
mov al, byte [esi]
cmp al, bl
je 0x4116a5
cmp al, cl
je 0x4116a5
mov al, byte [esi + ebp + 1]
inc ebp
cmp al, bl
jne 0x411698
push edx
push edi
lea ecx, [esp + 0x50]
call fcn.00413680
push 0x425df4
lea ecx, [esp + 0x4c]
call fcn.00414270
test eax, eax
je 0x4116d4
push str.LANG
lea ecx, [esp + 0x4c]
call fcn.00414270
test eax, eax
jne 0x4116f3
push ebp
push esi
lea ecx, [esp + 0x20]
call fcn.00413680
push eax
mov ecx, 0x429060
call fcn.00413a20
lea ecx, [esp + 0x18]
call fcn.004138f0
lea ecx, [esp + 0x48]
lea edi, [esi + ebp]
call fcn.004138f0
cmp byte [edi], bl
jne 0x411650
pop ebp
mov ecx, 0x429060
call fcn.00413a00
test eax, eax
je 0x411725
push 0x425de8
mov ecx, 0x429060
call fcn.00413b00
lea ecx, [esp + 0x5c]
call fcn.0040fae0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
lea edx, [esp + 0x5c]
lea eax, [esp + 0x64]
push edx
push eax
push 0x429078
call fcn.00411a30
mov eax, dword [0x429080]
push ebx
push 0x40ccd0
push esi
push 0x81
push eax
call fcn.00411d30
lea ecx, [esp + 0x1b8]
mov edi, eax
call fcn.00405cc0
lea ecx, [esp + 0x1a0]
call fcn.004138f0
lea ecx, [esp + 0x188]
call fcn.004138f0
lea ecx, [esp + 0x170]
call fcn.004138f0
lea ecx, [esp + 0x158]
call fcn.004138f0
lea ecx, [esp + 0x140]
call fcn.0040e580
lea ecx, [esp + 0x78]
call fcn.0040f780
mov ecx, dword [0x428d88]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x429104]
cmp eax, ebx
je 0x4117e2
cmp dword [eax + 4], ebx
jle 0x4117e2
mov edx, dword [eax]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x429104]
mov esi, eax
cmp esi, ebx
je 0x4117f8
mov ecx, esi
call fcn.00411ab0
push esi
call fcn.004163d0
add esp, 4
mov ecx, dword [0x428d88]
mov dword [0x429104], ebx
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x429100]
cmp esi, ebx
je 0x411828
mov ecx, esi
call fcn.00411a70
push esi
call fcn.004163d0
add esp, 4
push 0x429078
call fcn.00411960
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x411847
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x1cc
ret 0x10