Function at 0x4467f0
Capabilities:
Check mutex on windows
Create thread
Print debug messages
Set current directory
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ad8a
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x628d00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
xor ebx, ebx
test byte [0x659800], 1
mov dword [ebp - 0x168], eax
jne 0x446865
or dword [0x659800], 1
push 0x5b7fb0
mov dword [0x64db14], 0x6597ec
mov dword [0x6597ec], ebx
mov dword [0x6597f0], ebx
mov dword [0x6597f4], ebx
call fcn.00535456
add esp, 4
test byte [0x659800], 2
jne 0x446896
or dword [0x659800], 2
mov ecx, 0x64dc60
mov dword [ebp - 4], ebx
call fcn.00402c89
push 0x5b7fa0
call fcn.00535456
add esp, 4
mov dword [ebp - 4], 0xffffffff
test byte [0x659800], 4
jne 0x4468cb
or dword [0x659800], 4
mov ecx, 0x64db18
mov dword [ebp - 4], 1
call fcn.00402d65
push 0x5b7f90
call fcn.00535456
add esp, 4
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.steam_api.dll_SteamAPI_Init]
test al, al
jne 0x4468fc
push str.Steam_user_is_not_logged_in_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push str.Fatal_Error
push str.Steam_must_be_running_to_play_this_game__SteamAPI_Init___failed__n
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x447065
xor eax, eax
push 0x104
lea ecx, [ebp - 0x164]
push ecx
push ebx
mov dword [0x64b8b8], eax
mov dword [0x64b8bc], eax
mov dword [0x64b8c0], eax
mov dword [0x64b8c4], eax
mov dword [0x64b8c8], eax
mov dword [0x64b8cc], eax
mov dword [0x64b8d0], eax
mov dword [0x64b8d4], eax
mov dword [0x64b8d8], eax
mov dword [0x64b8dc], eax
mov dword [0x64b8e0], eax
mov dword [0x64b8e4], eax
mov dword [0x64b8e8], eax
mov dword [0x64b8ec], eax
mov dword [0x64b8f0], eax
mov dword [0x64b8f4], eax
mov dword [0x64b8f8], eax
mov dword [0x64b8fc], eax
mov dword [0x64b900], eax
mov dword [0x64b904], eax
mov dword [0x64b908], eax
mov dword [0x64b90c], eax
mov dword [0x64b910], eax
mov dword [0x64b914], eax
mov dword [0x64b918], eax
mov dword [0x64b91c], eax
mov dword [0x64b920], eax
mov dword [0x65aa1c], ebx
mov dword [0x64dae8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x164]
push 0x5c
push edx
call fcn.00535d4e
mov byte [eax], 0
add esp, 8
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push 0x402b67
push ebx
push ebx
mov dword [0x64daf0], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4469f6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [0x64daf0], ebx
jne 0x446a0e
mov ecx, dword [0x62d110]
call fcn.004023a6
jmp 0x447063
call dword [sym.imp.steam_api.dll_SteamApps]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
mov esi, str.japanese
call eax
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x446a42
test cl, cl
je 0x446a3e
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x446a42
add eax, 2
add esi, 2
test cl, cl
jne 0x446a22
xor eax, eax
jmp 0x446a47
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
setne cl
push ecx
mov ecx, 0x6e1700
call fcn.004014e7
movzx edx, byte [0x6e172f]
push edx
call fcn.004042fa
add esp, 4
test eax, eax
jne 0x446a80
mov eax, dword [0x62d124]
push str._words_file_not_found
push eax
call fcn.00403b25
add esp, 8
mov ecx, dword [0x62d110]
mov eax, dword [ecx + 0x4e38]
push eax
mov ecx, 0x64db18
call fcn.0040365c
mov edx, dword [0x62d110]
mov eax, dword [edx + 8]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x446af7
mov eax, dword [0x62d110]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x8cb4]
push ecx
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00535605
add esp, 0xc
push 0x40010
push ebx
lea ecx, [ebp - 0x60]
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x62d110]
call fcn.004023a6
or eax, 0xffffffff
jmp 0x447065
mov edx, dword [0x62d110]
mov eax, dword [edx + 0x4e38]
mov ecx, dword [0x62d124]
push eax
call fcn.00402ff9
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x64dac4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [0x6e1707], 0
mov dword [ebp - 0x16c], ebx
je 0x446b4d
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
lea eax, [ebp - 0x16c]
push eax
push ebx
push 0x10
call esi
push 2
push ebx
push ebx
push 0x11
call esi
cmp byte [0x6e170c], 0
jne 0x446bc9
call fcn.00402dc9
test eax, eax
jne 0x446bc0
mov ecx, dword [0x62d110]
mov eax, dword [ecx + 0x8dd4]
mov edx, dword [0x62d124]
push eax
push edx
call fcn.00403b25
mov ecx, 0x320
mov eax, 0x258
mov dword [0x6e1728], eax
mov dword [0x6e1714], eax
mov dword [0x6e1710], ecx
mov dword [0x6e1724], ecx
mov eax, ecx
mov ecx, dword [0x6e1728]
add esp, 8
mov dword [0x6e171c], 0x10
mov dword [0x6e1720], 9
mov byte [0x6e170c], 1
jmp 0x446be1
cmp byte [0x6e170c], 0
je 0x446bd6
mov eax, dword [0x6e1724]
mov ecx, dword [0x6e1728]
jmp 0x446be1
mov eax, dword [0x6e1710]
mov ecx, dword [0x6e1714]
movzx edx, byte [0x6e172c]
mov dword [0x6e1734], eax
mov dword [0x670a44], eax
mov dword [0x670a4c], eax
movzx eax, byte [0x6e1708]
mov dword [0x6e1738], ecx
mov dword [0x670a48], ecx
mov dword [0x670a50], ecx
mov cl, byte [0x6e172e]
mov byte [0x670a5d], cl
mov ecx, dword [ebp - 0x168]
mov byte [0x670a5c], al
movzx eax, byte [0x6e172d]
push ecx
push edi
mov dword [0x670a54], 1
mov dword [0x670a58], edx
mov byte [0x670a5e], al
call fcn.00446510
mov ecx, dword [0x62d124]
add esp, 8
mov esi, eax
push 0x64dafc
push esi
mov dword [0x64dae0], esi
mov dword [0x64dadc], edi
call fcn.00401979
call fcn.00403c7e
mov edx, dword [0x64dae0]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x1504
call fcn.00531bf4
add esp, 4
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], 2
cmp eax, ebx
je 0x446ca5
mov ecx, eax
call fcn.004010d2
jmp 0x446ca7
xor eax, eax
push ebx
push edi
push esi
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x65aa1c], eax
call fcn.00403d14
call fcn.004044d0
call fcn.0040312f
call fcn.004025bd
push ebx
call fcn.0040142e
push 1
call fcn.004014ec
push 1
call fcn.00402b30
add esp, 0xc
call fcn.004046fb
call fcn.00403c92
call fcn.00402e64
test eax, eax
jne 0x446cfb
mov byte [0x69fe58], al
movzx eax, byte [0x69fe58]
push eax
call fcn.0040171c
mov ecx, dword [0x6e1720]
mov edx, dword [0x6e171c]
add esp, 4
push ecx
push edx
mov ecx, 0x6e1700
call fcn.0040353f
mov ecx, dword [0x65aa1c]
push 0x69fe18
push 0x69fdf8
mov byte [0x69fcbf], al
call fcn.00402847
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0x2d
jne 0x446d54
cmp byte [eax + 1], 0x63
jne 0x446d54
push esi
call fcn.00401a4b
add esp, 4
push esi
mov ecx, 0x65f870
call fcn.004018c0
test eax, eax
je 0x446fc1
mov ecx, 0x65f870
call fcn.00404570
test eax, eax
jne 0x446d8e
mov eax, dword [0x62d110]
mov ecx, dword [eax + 0x8d78]
push 0x40010
push ebx
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00401686
test eax, eax
jne 0x446da8
mov edx, dword [0x62d124]
push str.InitScreenParameter
push edx
jmp 0x446fb9
call fcn.0040431d
mov eax, 0x400
cmp dword [0x670a3c], eax
jl 0x446fa6
cmp dword [0x670a40], eax
jl 0x446fa6
push str.bmp_fontdata.bin
push str.bmp_fontdata.png
call fcn.0040213a
add esp, 8
test eax, eax
jne 0x446dfb
mov eax, dword [0x62d110]
mov ecx, dword [eax + 0x8de0]
mov edx, dword [0x62d124]
push ecx
push edx
call fcn.00403b25
add esp, 8
call fcn.00401668
mov ecx, 0x65a020
call fcn.0040222f
call fcn.0040238d
call fcn.00402f36
push ebx
push ebx
push ebx
push 0x4046bf
push ebx
push ebx
mov dword [0x64dae8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x64daf8], eax
xor eax, eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
cmp eax, 0x12
je 0x446eaf
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x188]
push eax
call esi
test eax, eax
je 0x446e9f
lea ecx, [ebp - 0x188]
push ecx
call edi
lea edx, [ebp - 0x188]
push edx
call ebx
jmp 0x446ea4
call fcn.00402879
cmp dword [ebp - 0x184], 0x12
jne 0x446e76
xor ebx, ebx
mov dword [0x64dae8], ebx
call fcn.004048a9
test eax, eax
je 0x446ee6
call fcn.0040371f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x446ed0
call fcn.004048a9
test eax, eax
je 0x446ee6
push 1
call edi
inc esi
cmp esi, 0x3e8
jl 0x446ed0
mov eax, dword [0x64daf8]
cmp eax, ebx
je 0x446f41
nop
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x446f38
mov eax, dword [0x64daf8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x62d110]
mov ecx, dword [eax + 0x8dac]
mov edx, dword [eax + 0x8da4]
mov eax, dword [0x62d124]
push ecx
push edx
push eax
mov dword [0x64daf8], ebx
call fcn.00403b25
add esp, 0xc
mov eax, dword [0x64daf8]
cmp eax, ebx
jne 0x446ef0
call fcn.00404165
mov ecx, 0x6e0618
call fcn.00403715
mov ecx, 0x65f870
call fcn.00401ccb
mov ecx, 0x65f870
call fcn.0040492b
mov ecx, 0x65f870
call fcn.00402bb2
mov ecx, 0x65f870
call fcn.00401a5f
mov ecx, dword [0x670a44]
mov edx, dword [0x670a48]
mov al, byte [0x670a5c]
mov dword [0x6e1734], ecx
mov ecx, 0x6e1700
mov dword [0x6e1738], edx
mov byte [0x6e1708], al
call fcn.00402b17
jmp 0x446fc1
mov ecx, dword [0x62d110]
mov edx, dword [ecx + 0x8cb0]
mov eax, dword [0x62d124]
push edx
push eax
call fcn.00403b25
add esp, 8
call fcn.00404273
mov ecx, dword [0x65aa1c]
cmp ecx, ebx
je 0x446fde
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [0x65aa1c], ebx
call fcn.0040399f
mov esi, 0x64b8b8
mov edi, dword [esi]
cmp edi, ebx
je 0x447000
mov ecx, edi
call fcn.00402f68
push edi
call fcn.00530f9e
add esp, 4
mov dword [esi], ebx
add esi, 4
cmp esi, 0x64b924
jl 0x446fe8
mov ecx, 0x65f870
call fcn.00401302
call fcn.004044d5
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
push 0x64dac4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp byte [0x6e1707], 0
je 0x447048
mov ecx, dword [ebp - 0x16c]
push 2
push ebx
push ecx
push 0x11
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [0x62d110]
call fcn.004023a6
call fcn.00401893
call fcn.004011f9
call dword [sym.imp.steam_api.dll_SteamAPI_Shutdown]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531be5
mov esp, ebp
pop ebp
ret 0x10