Function at 0x408150
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
push str.SetThreadUILanguage
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadLocale]
test eax, eax
push 0x42fab0
mov esi, edi
mov byte [0x57ed16], 0
push str.steam_api.dll
cmovne esi, eax
call fcn.004191ef
add esp, 8
test eax, eax
je 0x4081ad
push eax
mov byte [0x57ed16], 1
call fcn.0041927c
add esp, 4
cmp byte [0x57ed16], 0
je 0x40828c
mov byte [0x57ed15], 0
call dword [sym.imp.steam_api.dll_SteamAPI_Init]
test al, al
jne 0x4081e9
mov eax, dword [str.english]
mov dword [esp + 0x2c], eax
mov eax, dword [0x42fac8]
mov byte [0x57ed15], 1
mov dword [esp + 0x30], eax
jmp 0x40826f
mov ebx, dword [sym.imp.steam_api.dll_SteamInternal_ContextInit]
push 0x432c50
call ebx
add esp, 4
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
jne 0x40820f
mov cl, 1
mov byte [0x57ed15], cl
jmp 0x408235
mov cl, byte [0x57ed15]
test cl, cl
jne 0x408235
push 0x432b54
call ebx
add esp, 4
mov ecx, dword [eax]
push 1
mov eax, dword [ecx]
call dword [eax + 0x90]
mov cl, byte [0x57ed15]
mov eax, dword [str.english]
mov dword [esp + 0x2c], eax
mov eax, dword [0x42fac8]
mov dword [esp + 0x30], eax
test cl, cl
jne 0x40826f
push 0x432c50
call ebx
add esp, 4
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
lea eax, [esp + 0x30]
push 0x42facc
push eax
call fcn.00407c70
add esp, 0xc
lea eax, [esp + 0x2c]
push str.japanese
push eax
call fcn.0041944c
add esp, 8
neg eax
sbb eax, eax
neg eax
mov dword [0x432b70], eax
push 0x42fab0
push str.dlllang_jpn.dll
call fcn.004191ef
add esp, 8
test eax, eax
je 0x4082b4
push eax
call fcn.0041927c
add esp, 4
xor eax, eax
mov dword [0x432b70], eax
jmp 0x4082b9
mov eax, dword [0x432b70]
sub eax, 1
je 0x4082cc
push 0x411
call esi
push 0x411
jmp 0x4082d8
push 0x409
call esi
push 0x409
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.ed6_config
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x408331
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ed6_config
push 0x42e794
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x408322
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret 0x10
push str.ed6_config
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [esp + 0x130]
xor esi, esi
push 0x104
push 0x57ed50
push edi
mov dword [0x57ed1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esi + 2]
mov edx, 0x57ed52
movzx eax, word [edx - 2]
cmp eax, 0x5c
jne 0x408375
lea esi, [ecx - 1]
jmp 0x40837a
test ax, ax
je 0x4083d4
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x408386
mov esi, ecx
jmp 0x40838b
test ax, ax
je 0x4083d4
movzx eax, word [edx + 2]
cmp eax, 0x5c
jne 0x408399
lea esi, [ecx + 1]
jmp 0x40839e
test ax, ax
je 0x4083d4
movzx eax, word [edx + 4]
cmp eax, 0x5c
jne 0x4083ac
lea esi, [ecx + 2]
jmp 0x4083b1
test ax, ax
je 0x4083d4
movzx eax, word [edx + 6]
cmp eax, 0x5c
jne 0x4083bf
lea esi, [ecx + 3]
jmp 0x4083c4
test ax, ax
je 0x4083d4
add ecx, 5
add edx, 0xa
lea eax, [ecx - 2]
cmp eax, 0x104
jl 0x408367
xor eax, eax
mov dword [0x57ed44], edi
push eax
push 0x407cc0
push eax
push 0x6a
push edi
mov word [esi*2 + 0x57ed50], ax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push dword [esp + 0x13c]
mov dword [0x57ed20], eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x10]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x408460
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x10]
push eax
push dword [0x57ed20]
call ebp
test eax, eax
jne 0x40844f
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x408430
push dword [0x57ed1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x57ed2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0x10