Function at 0x46b080
Capabilities:
Check mutex on windows
Check os version
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6719f0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe88
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0xe61]
mov dword [ebp - 0xe6c], eax
call fcn.00536a40
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [ebp - 0xe61]
call fcn.00536af0
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [0x755d4c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x46bb6b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
lea ecx, [ebp - 0xe68]
push 0xc9
mov dword [ebp - 0xe68], eax
call fcn.00441820
mov esi, dword [ebp - 0xe68]
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00469da0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b168
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0xc
call fcn.0046c410
push 0
lea eax, [ebp - 0xe40]
mov dword [ebp - 0xe40], 1
push eax
lea eax, [ebp - 0xe70]
mov dword [ebp - 0xe3c], 0
push eax
mov dword [ebp - 0xe38], 0
mov dword [ebp - 0xe34], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.00442420
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [ebp - 0x134]
push 0x118
push 0
push eax
mov dword [ebp - 0xe68], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0x11c
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 6
jb 0x46b20c
push esi
push 0x445e10
push 0
push edi
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
jmp 0x46b215
mov eax, 0x100
or word [esi + 0xc], ax
movzx eax, word [esi + 0xc]
lea edi, [esi + 8]
movzx ecx, ax
test eax, 0x100
je 0x46b238
push 2
push 0x6eab00
mov ecx, edi
call fcn.00441d80
movzx ecx, word [esi + 0xc]
movzx eax, cx
test cl, 0x10
je 0x46b252
push 6
push str.Tahoma
mov ecx, edi
call fcn.00441d80
movzx eax, word [esi + 0xc]
test al, 1
je 0x46b264
push 4
push 0x6eaae4
mov ecx, edi
call fcn.00441d80
push dword [ebp - 0xe68]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [edi]
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0x208
mov dword [esi + 4], eax
lea eax, [ebp - 0x428]
push 0
push eax
mov dword [0x755f0c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.downloaderdownloader.log
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x428]
push eax
call fcn.00509940
lea eax, [ebp - 0xe88]
mov dword [ebp - method.CInstanceMutex.virtual_0], vtable.CInstanceMutex.0
push eax
mov dword [ebp - 0xe94], 0
mov dword [ebp - 0xe90], 0
mov dword [ebp - 0xe8c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x800
lea eax, [ebp - 0xe30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xe30]
add esp, 0xc
push 0x400
push eax
push dword [0x755d4c]
call edi
lea eax, [ebp - 0xe30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.ThunderMissionDownloadingMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0xe68], esi
test esi, esi
je 0x46b52b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46b4e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x46b783
push 0x24
push str.f:master_luinst_ui_marketinst.cpp
lea ecx, [ebp - 0xe60]
mov dword [ebp - 0xe50], eax
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], al
call fcn.0042a9a0
push 3
push 0x6d1880
lea ecx, [ebp - 0xe48]
mov dword [ebp - 0xe38], 0
mov dword [ebp - 0xe34], 0xf
mov byte [ebp - 0xe48], 0
call fcn.0042a9a0
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0xb0]
push 0xa2
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0xe48]
push eax
call fcn.0042c590
mov esi, eax
push str.inf_:_Instance_exist__quit
push esi
call fcn.0043f750
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00428ee0
mov edx, dword [ebp - 0xe34]
cmp edx, 0x10
jb 0x46b48c
mov ecx, dword [ebp - 0xe48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46b482
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edx, dword [ebp - 0xe4c]
mov dword [ebp - 0xe38], 0
mov dword [ebp - 0xe34], 0xf
mov byte [ebp - 0xe48], 0
cmp edx, 0x10
jb 0x46b783
mov ecx, dword [ebp - 0xe60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46b779
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0xe88]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0xe90]
cmp dword [ebp - 0xe8c], eax
je 0x46b50b
mov dword [eax], esi
add dword [ebp - 0xe90], 4
jmp 0x46b51e
lea ecx, [ebp - 0xe68]
push ecx
push eax
lea ecx, [ebp - 0xe94]
call fcn.00423b80
lea eax, [ebp - 0xe88]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [0x755d4c]
call edi
lea eax, [ebp - 0x220]
push eax
call fcn.004e81f0
add esp, 4
test eax, eax
jne 0x46b663
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x46b783
push 0x24
push str.f:master_luinst_ui_marketinst.cpp
lea ecx, [ebp - 0xe60]
mov dword [ebp - 0xe50], eax
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], al
call fcn.0042a9a0
push 3
push 0x6d1880
lea ecx, [ebp - 0xe48]
mov dword [ebp - 0xe38], 0
mov dword [ebp - 0xe34], 0xf
mov byte [ebp - 0xe48], 0
call fcn.0042a9a0
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0xb0]
push 0xa8
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0xe48]
push eax
call fcn.0042c590
mov esi, eax
push str.err_:_CheckSign_fail__quit
push esi
call fcn.0043f750
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00428ee0
mov edx, dword [ebp - 0xe34]
cmp edx, 0x10
jb 0x46b48c
mov ecx, dword [ebp - 0xe48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46b482
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0xe6c]
call fcn.00465320
mov ecx, eax
call fcn.00470d80
call fcn.0046ac40
test eax, eax
jne 0x46b78a
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x46b783
push 0x24
push str.f:master_luinst_ui_marketinst.cpp
lea ecx, [ebp - 0xe60]
mov dword [ebp - 0xe50], eax
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], al
call fcn.0042a9a0
push 3
push 0x6d1880
lea ecx, [ebp - 0xe48]
mov dword [ebp - 0xe38], 0
mov dword [ebp - 0xe34], 0xf
mov byte [ebp - 0xe48], 0
call fcn.0042a9a0
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0xb0]
push 0xb1
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0xe48]
push eax
call fcn.0042c590
mov esi, eax
push str.err_:_ReInitCommandByNet_fail__quit
push esi
call fcn.0043f750
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00428ee0
mov edx, dword [ebp - 0xe34]
cmp edx, 0x10
jb 0x46b48c
mov ecx, dword [ebp - 0xe48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b482
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46b482
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
xor edi, edi
jmp 0x46baa4
call fcn.0046aa10
call fcn.00465320
sub esp, 0x28
mov eax, dword [eax + 0x44]
mov dword [0x755f10], eax
mov eax, esp
push ecx
push 0
push 0x6ebd20
mov dword [eax + 0x24], 0
call fcn.004364c0
mov ecx, eax
call fcn.004a4810
push 1
call fcn.0045cd70
mov ecx, eax
call fcn.00435350
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x46b92d
push 0x24
push str.f:master_luinst_ui_marketinst.cpp
lea ecx, [ebp - 0xe60]
mov dword [ebp - 0xe50], eax
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], al
call fcn.0042a9a0
push 3
push 0x6d1880
lea ecx, [ebp - 0xe48]
mov dword [ebp - 0xe38], 0
mov dword [ebp - 0xe34], 0xf
mov byte [ebp - 0xe48], 0
call fcn.0042a9a0
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0xb0]
push 0xbe
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0xe48]
push eax
call fcn.0042c590
mov esi, eax
push str.cmdline__by_force_cmd__:
push esi
call fcn.0043f750
mov eax, dword [ebp - 0xe6c]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.0043f750
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00428ee0
mov edx, dword [ebp - 0xe34]
cmp edx, 0x10
jb 0x46b8d6
mov ecx, dword [ebp - 0xe48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b8cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46b8cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edx, dword [ebp - 0xe4c]
mov dword [ebp - 0xe38], 0
mov dword [ebp - 0xe34], 0xf
mov byte [ebp - 0xe48], 0
cmp edx, 0x10
jb 0x46b92d
mov ecx, dword [ebp - 0xe60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b923
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46b923
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edx, dword [ebx + 0x14]
call fcn.0046a3c0
mov dword [ebp - 0xe68], eax
call fcn.0045cd70
mov esi, eax
mov edx, dword [esi + 0x90]
lea ecx, [esi + 0x90]
call dword [edx + 0x14]
mov edx, dword [esi + 0x1a0]
lea ecx, [esi + 0x1a0]
call dword [edx + 0x14]
push 0xffffff
lea ecx, [esi + 0x2b0]
call fcn.004404c0
mov eax, dword [0x758fa0]
add eax, 0x10
push eax
mov dword [ebp - 0xe6c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x755f08]
test esi, esi
je 0x46b9a7
cmp dword [esi + 4], 0
jle 0x46b9a5
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x755f08]
test esi, esi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
je 0x46b9da
mov eax, dword [esi]
test eax, eax
je 0x46b9c1
push eax
call edi
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00669e69
add esp, 8
push dword [ebp - 0xe6c]
mov dword [0x755f08], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x755f04]
test esi, esi
je 0x46ba32
mov eax, dword [esi]
test eax, eax
je 0x46ba0c
push eax
call edi
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x46ba20
push eax
call edi
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.00669e69
add esp, 8
mov esi, dword [0x755efc]
test esi, esi
je 0x46ba64
cmp dword [esi], 0
je 0x46ba64
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x46ba4e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x46ba41
mov esi, dword [0x74c168]
mov ecx, dword [0x74c16c]
cmp esi, ecx
jae 0x46ba8e
mov eax, dword [esi]
test eax, eax
je 0x46ba87
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x74c16c]
add esi, 4
cmp esi, ecx
jb 0x46ba74
mov ecx, 0x755ed0
call fcn.0046ce40
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, dword [ebp - 0xe68]
lea ecx, [ebp - 0xe98]
call fcn.00422840
push dword [ebp - 0xe70]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [ebp - 0xe70], 0
push 0x104
lea eax, [ebp - 0x630]
mov dword [ebp - 4], 3
push eax
push dword [0x755d4c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x46bb75
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
lea ecx, [ebp - 0xe6c]
push 0xc9
mov dword [ebp - 0xe6c], eax
call fcn.00441820
mov esi, dword [ebp - 0xe6c]
lea eax, [ebp - 0x630]
push esi
push eax
call fcn.0046a070
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46bb3e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0xe61]
call fcn.00536ac0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
int3