Function at 0x40cac0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c62
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x430100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x358]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov dword [ebp - 4], 0
push 0x104
push 0
lea ecx, [ebp - 0x330]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x427108
lea ecx, [ebp - 0x400]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov dword [ebp - 0x3e4], eax
mov edx, dword [ebp - 0x3e4]
mov dword [ebp - 0x3fc], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3fc]
push eax
lea ecx, [ebp - 0x358]
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::IsEqualCaseSensitive_class_CTString_const__const]
test eax, eax
jne 0x40cb64
mov dword [ebp - 0x394], 1
jmp 0x40cb6e
mov dword [ebp - 0x394], 0
mov cl, byte [ebp - 0x394]
mov byte [ebp - 0x349], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x400]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
movzx edx, byte [ebp - 0x349]
test edx, edx
je 0x40ce88
mov dword [ebp - method.XSingle_struct_IPCEventInfo_.virtual_0], vtable.XSingle_struct_IPCEventInfo_.0
mov dword [ebp - method.XExtIPCManager_struct_IPCEventInfo_.virtual_0], vtable.XExtIPCManager_struct_IPCEventInfo_.0
mov byte [ebp - 4], 2
call fcn.0040f680
movzx eax, al
test eax, eax
je 0x40cbfa
mov ecx, dword [0x4570bc]
mov dword [ebp - 0x404], ecx
xor edx, edx
je 0x40cbd6
mov byte [ebp - 0x345], 1
jmp 0x40cbdd
mov byte [ebp - 0x345], 0
movzx eax, byte [ebp - 0x345]
push eax
push 1
mov ecx, dword [ebp - 0x404]
call fcn.0040f500
mov dword [ebp - 0x35c], eax
jmp 0x40cc04
mov dword [ebp - 0x35c], 0xffffffff
cmp dword [ebp - 0x35c], 0
jge 0x40cc9d
push 0
push 0x427114
push 0x427120
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x4570bc]
mov dword [ebp - 0x3ac], ecx
xor edx, edx
je 0x40cc3e
mov byte [ebp - 0x346], 1
jmp 0x40cc45
mov byte [ebp - 0x346], 0
movzx eax, byte [ebp - 0x346]
push eax
mov ecx, dword [ebp - 0x3ac]
call fcn.0040faa0
call fcn.0040fb80
mov dword [ebp - 0x3b0], 1
mov byte [ebp - 4], 0
mov dword [ebp - method.XExtIPCManager_struct_IPCEventInfo_.virtual_0], vtable.XExtIPCManager_struct_IPCEventInfo_.0
mov dword [ebp - method.XSingle_struct_IPCEventInfo_.virtual_0], vtable.XSingle_struct_IPCEventInfo_.0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x358]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov eax, dword [ebp - 0x3b0]
jmp 0x40d5b5
mov dword [ebp - 0x368], 0
mov ecx, dword [0x4570bc]
mov dword [ebp - 0x3b4], ecx
push 0
lea edx, [ebp - 0x344]
push edx
mov ecx, dword [ebp - 0x3b4]
call fcn.0040f7f0
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x368]
add eax, 1
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x35c], 0
jle 0x40ce60
cmp dword [ebp - 0x338], 0x64
je 0x40cdd4
mov dword [ebp - 0x220], 0xffffffff
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
push 0x104
push 0
lea ecx, [ebp - 0x218]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [0x4570bc]
mov dword [ebp - 0x3b8], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3b8]
call fcn.0040f730
push 0
push str.LastChaos
push str.This_program_could_not_be_run_itself
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x4570bc]
mov dword [ebp - 0x3bc], ecx
xor edx, edx
je 0x40cd75
mov byte [ebp - 0x347], 1
jmp 0x40cd7c
mov byte [ebp - 0x347], 0
movzx eax, byte [ebp - 0x347]
push eax
mov ecx, dword [ebp - 0x3bc]
call fcn.0040faa0
call fcn.0040fb80
mov dword [ebp - 0x3c0], 1
mov byte [ebp - 4], 0
mov dword [ebp - method.XExtIPCManager_struct_IPCEventInfo_.virtual_0], vtable.XExtIPCManager_struct_IPCEventInfo_.0
mov dword [ebp - method.XSingle_struct_IPCEventInfo_.virtual_0], vtable.XSingle_struct_IPCEventInfo_.0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x358]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov eax, dword [ebp - 0x3c0]
jmp 0x40d5b5
mov dword [ebp - 0x220], 0x64
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
push 0x104
push 0
lea ecx, [ebp - 0x218]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [0x4570bc]
mov dword [ebp - 0x3c4], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3c4]
call fcn.0040f730
mov ecx, dword [0x4570bc]
mov dword [ebp - 0x3c8], ecx
xor edx, edx
je 0x40ce3f
mov byte [ebp - 0x348], 1
jmp 0x40ce46
mov byte [ebp - 0x348], 0
movzx eax, byte [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x3c8]
call fcn.0040faa0
call fcn.0040fb80
jmp 0x40ce70
cmp dword [ebp - 0x368], 0x3e8
jne 0x40cca7
mov byte [ebp - 4], 0
mov dword [ebp - method.XExtIPCManager_struct_IPCEventInfo_.virtual_0], vtable.XExtIPCManager_struct_IPCEventInfo_.0
mov dword [ebp - method.XSingle_struct_IPCEventInfo_.virtual_0], vtable.XSingle_struct_IPCEventInfo_.0
lea ecx, [ebp - 0x330]
push ecx
call fcn.0040a0e0
add esp, 4
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
push ecx
mov ecx, esp
mov dword [ebp - 0x408], esp
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
jne 0x40cef9
mov dword [ebp - 0x3d0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x358]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov eax, dword [ebp - 0x3d0]
jmp 0x40d5b5
push 0x104
push 0
lea edx, [ebp - 0x114]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x3d4]
push ecx
lea edx, [ebp - 0x114]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x398], eax
mov eax, dword [ebp - 0x398]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x39c], eax
mov edx, dword [ebp - 0x39c]
push edx
mov eax, dword [ebp - 0x398]
push eax
mov ecx, dword [ebp - 0x3d4]
push ecx
lea edx, [ebp - 0x114]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x3d8], 0
lea eax, [ebp - 0x3d8]
push eax
lea ecx, [ebp - 0x3a0]
push ecx
push str.StringFileInfo000004b0FileVersion
mov edx, dword [ebp - 0x39c]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d011
call dword [sym.imp.Engine.dll_class_CUIManager____cdecl_SE_Get_UIManagerPtr_void_]
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x3a4], eax
mov ecx, 4
imul edx, ecx, 0xa8
mov eax, dword [ebp - 0x3dc]
mov ecx, dword [eax + edx + 0x258]
mov dword [ebp - 0x3a4], ecx
mov edx, dword [ebp - 0x3a0]
mov dword [ebp - 0x3e0], edx
mov eax, dword [ebp - 0x3e0]
push eax
mov ecx, dword [ebp - 0x3a4]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CUILoginNew::setVersion_char_const__]
mov ecx, dword [ebp - 0x36c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x3f8], 1
mov eax, dword [sym.imp.Engine.dll_char__g_szExitError]
cmp dword [eax], 0
jne 0x40d070
cmp dword [ebp - 0x3f8], 0
je 0x40d070
mov ecx, dword [sym.imp.Engine.dll_class_CGameState___pGameState]
mov ecx, dword [ecx]
call dword [sym.imp.Engine.dll_public:_int____thiscall_CGameState::Running_void_]
mov dword [eax], 1
mov edx, dword [sym.imp.Engine.dll_class_CGameState___pGameState]
mov ecx, dword [edx]
call dword [sym.imp.Engine.dll_public:_int____thiscall_CGameState::QuitScreen_void_]
mov dword [eax], 1
mov eax, dword [0x457020]
mov dword [eax + 8], 0
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
push 1
push 0x282
mov ecx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xorps xmm0, xmm0
movss dword [ebp - 0x374], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x354], xmm0
mov dword [ebp - 0x364], 0
xorps xmm0, xmm0
movss dword [ebp - 0x360], xmm0
call fcn.00409f70
call fcn.00403ff0
mov eax, dword [sym.imp.Engine.dll_bool_DiscordUpdateData]
mov byte [eax], 1
mov ecx, dword [sym.imp.Engine.dll_class_CGameState___pGameState]
mov ecx, dword [ecx]
call dword [sym.imp.Engine.dll_public:_int____thiscall_CGameState::Running_void_]
cmp dword [eax], 0
je 0x40d571
push 0x42711e
mov ecx, 0x45705c
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x40d571
call fcn.00409c60
call fcn.00403b60
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x390]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40d405
cmp dword [ebp - 0x38c], 0x200
jb 0x40d157
cmp dword [ebp - 0x38c], 0x20e
ja 0x40d157
mov ecx, dword [sym.imp.Engine.dll_class_cWeb_g_web]
call dword [sym.imp.Engine.dll_public:_int___thiscall_cWeb::IsWebHandle_void_]
test eax, eax
je 0x40d192
cmp dword [ebp - 0x38c], 0x100
jne 0x40d16c
cmp dword [ebp - 0x388], 0x79
je 0x40d192
cmp dword [ebp - 0x38c], 0x104
je 0x40d192
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x390]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x38c], 0x112
jne 0x40d294
mov edx, dword [ebp - 0x388]
and edx, 0xfffffff0
mov dword [ebp - 0x370], edx
cmp dword [ebp - 0x370], 0xf020
je 0x40d1da
cmp dword [ebp - 0x370], 0xf030
je 0x40d236
cmp dword [ebp - 0x370], 0xf120
je 0x40d20b
jmp 0x40d294
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [eax], 0
je 0x40d1e9
jmp 0x40d294
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [ecx], 1
push 6
mov edx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40d294
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [ecx], 0
je 0x40d218
jmp 0x40d294
mov edx, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [edx], 1
push 1
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40d294
mov edx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [edx], 0
je 0x40d243
jmp 0x40d294
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [eax], 1
push 1
mov ecx, dword [sym.imp.Engine.dll_long_int_sam_iDisplayDepth]
mov edx, dword [ecx]
push edx
mov eax, dword [sym.imp.Engine.dll_long_int_sam_iScreenSizeJ]
mov ecx, dword [eax]
push ecx
mov edx, dword [sym.imp.Engine.dll_long_int_sam_iScreenSizeI]
mov eax, dword [edx]
push eax
mov ecx, dword [sym.imp.Engine.dll_long_int_sam_iDisplayAdapter]
mov edx, dword [ecx]
push edx
mov eax, dword [sym.imp.Engine.dll_long_int_sam_iGfxAPI]
mov ecx, dword [eax]
push ecx
call fcn.00408ff0
add esp, 0x18
push 1
mov edx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x38c], 0x12
jne 0x40d2a2
call fcn.0040a520
cmp dword [ebp - 0x38c], 6
jne 0x40d2d3
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
test edx, edx
je 0x40d2f7
mov eax, dword [ebp - 0x388]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
jne 0x40d2f7
cmp dword [ebp - 0x38c], 0x1f
je 0x40d2f7
cmp dword [ebp - 0x38c], 8
je 0x40d2f7
cmp dword [ebp - 0x38c], 0x1c
jne 0x40d311
cmp dword [ebp - 0x388], 0
jne 0x40d311
push 0
push 1
push 0x282
mov edx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40d390
cmp dword [ebp - 0x38c], 6
jne 0x40d341
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
cmp edx, 1
je 0x40d35c
mov eax, dword [ebp - 0x388]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 2
je 0x40d35c
cmp dword [ebp - 0x38c], 7
je 0x40d35c
cmp dword [ebp - 0x38c], 0x1c
jne 0x40d390
cmp dword [ebp - 0x388], 0
je 0x40d390
cmp dword [ebp - 0x38c], 7
jne 0x40d378
mov ecx, 7
lea esi, [ebp - 0x390]
lea edi, [ebp - 0x390]
rep movsd dword es:[edi], dword [esi]
push 0
push 1
push 0x282
mov edx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.Engine.dll_class_CUIManager____cdecl_SE_Get_UIManagerPtr_void_]
mov dword [ebp - 0x3e8], eax
push 0x456ff8
lea ecx, [ebp - 0x390]
push ecx
mov ecx, dword [ebp - 0x3e8]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CUIManager::MsgProc_struct_tagMSG___int__]
mov edx, dword [sym.imp.Engine.dll_class_CGameState___pGameState]
mov ecx, dword [edx]
call dword [sym.imp.Engine.dll_public:_long_int____thiscall_CGameState::GetGameMode_void_]
cmp dword [eax], 0
jne 0x40d3ea
mov eax, dword [0x457020]
cmp dword [eax + 8], 0
je 0x40d3de
mov ecx, dword [0x457020]
cmp dword [ecx + 8], 3
jne 0x40d3ea
mov dword [ebp - 0x3a8], 1
jmp 0x40d3f4
mov dword [ebp - 0x3a8], 0
mov edx, dword [ebp - 0x3a8]
mov dword [ebp - 0x40c], edx
jmp 0x40d112
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [eax], 0
call fcn.0040a7f0
call fcn.0040c210
mov ecx, dword [ebp - 0x364]
add ecx, 1
mov dword [ebp - 0x364], ecx
mov edx, dword [sym.imp.Engine.dll_class_CTimer___pTimer]
mov eax, dword [edx]
mov dword [ebp - 0x3ec], eax
lea ecx, [ebp - 0x418]
push ecx
mov ecx, dword [ebp - 0x3ec]
call dword [sym.imp.Engine.dll_public:_class_CTimerValue___thiscall_CTimer::GetHighPrecisionTimer_void_]
mov dword [ebp - 0x3f0], eax
mov edx, dword [ebp - 0x3f0]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
call fcn.00422c20
divsd xmm0, qword [0x426d00]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x354], xmm0
movzx eax, byte [0x4570c0]
test eax, eax
jne 0x40d56c
mov ecx, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x427f44]
lahf
test ah, 0x44
jnp 0x40d4b7
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x374]
comiss xmm0, dword [0x427f2c]
jb 0x40d56c
cvtsi2ss xmm0, dword [ebp - 0x364]
movss xmm1, dword [ebp - 0x354]
subss xmm1, dword [ebp - 0x374]
divss xmm0, xmm1
mov edx, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss dword [edx], xmm0
mov eax, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss xmm0, dword [0x427f38]
comiss xmm0, dword [eax]
jbe 0x40d50d
movss xmm0, dword [ebp - 0x354]
movss dword [ebp - 0x360], xmm0
mov ecx, dword [sym.imp.Engine.dll_int_g_bNoPlaySnd]
mov dword [ecx], 1
jmp 0x40d552
movss xmm0, dword [ebp - 0x360]
ucomiss xmm0, dword [0x427f20]
lahf
test ah, 0x44
jnp 0x40d552
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x360]
comiss xmm0, dword [0x427f2c]
jbe 0x40d552
xorps xmm0, xmm0
movss dword [ebp - 0x360], xmm0
mov edx, dword [sym.imp.Engine.dll_int_g_bNoPlaySnd]
mov dword [edx], 0
mov dword [ebp - 0x364], 0
movss xmm0, dword [ebp - 0x354]
movss dword [ebp - 0x374], xmm0
jmp 0x40d0d9
call fcn.00403ff0
call fcn.00403a70
mov eax, dword [0x457020]
mov edx, dword [eax]
mov ecx, dword [0x457020]
mov eax, dword [edx + 0x44]
call eax
call fcn.0040a670
mov dword [ebp - 0x3f4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x358]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov eax, dword [ebp - 0x3f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422656
mov esp, ebp
pop ebp
ret