Function at 0x40d0d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425332
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x431100]
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 0x428148
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 0x40d174
mov dword [ebp - 0x394], 1
jmp 0x40d17e
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 0x40d498
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.0040fc90
movzx eax, al
test eax, eax
je 0x40d20a
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x404], ecx
xor edx, edx
je 0x40d1e6
mov byte [ebp - 0x345], 1
jmp 0x40d1ed
mov byte [ebp - 0x345], 0
movzx eax, byte [ebp - 0x345]
push eax
push 1
mov ecx, dword [ebp - 0x404]
call fcn.0040fb10
mov dword [ebp - 0x35c], eax
jmp 0x40d214
mov dword [ebp - 0x35c], 0xffffffff
cmp dword [ebp - 0x35c], 0
jge 0x40d2ad
push 0
push 0x428154
push 0x428160
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x3ac], ecx
xor edx, edx
je 0x40d24e
mov byte [ebp - 0x346], 1
jmp 0x40d255
mov byte [ebp - 0x346], 0
movzx eax, byte [ebp - 0x346]
push eax
mov ecx, dword [ebp - 0x3ac]
call fcn.004100b0
call fcn.00410190
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 0x40dbc5
mov dword [ebp - 0x368], 0
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x3b4], ecx
push 0
lea edx, [ebp - 0x344]
push edx
mov ecx, dword [ebp - 0x3b4]
call fcn.0040fe00
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x368]
add eax, 1
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x35c], 0
jle 0x40d470
cmp dword [ebp - 0x338], 0x64
je 0x40d3e4
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 [0x4580bc]
mov dword [ebp - 0x3b8], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3b8]
call fcn.0040fd40
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 [0x4580bc]
mov dword [ebp - 0x3bc], ecx
xor edx, edx
je 0x40d385
mov byte [ebp - 0x347], 1
jmp 0x40d38c
mov byte [ebp - 0x347], 0
movzx eax, byte [ebp - 0x347]
push eax
mov ecx, dword [ebp - 0x3bc]
call fcn.004100b0
call fcn.00410190
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 0x40dbc5
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 [0x4580bc]
mov dword [ebp - 0x3c4], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3c4]
call fcn.0040fd40
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x3c8], ecx
xor edx, edx
je 0x40d44f
mov byte [ebp - 0x348], 1
jmp 0x40d456
mov byte [ebp - 0x348], 0
movzx eax, byte [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x3c8]
call fcn.004100b0
call fcn.00410190
jmp 0x40d480
cmp dword [ebp - 0x368], 0x3e8
jne 0x40d2b7
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.0040a730
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.0040b4b0
add esp, 0xc
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
jne 0x40d509
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 0x40dbc5
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 0x40d621
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 0x40d680
cmp dword [ebp - 0x3f8], 0
je 0x40d680
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 [0x458020]
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.0040a5c0
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 0x40db81
push 0x428139
mov ecx, 0x45805c
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x40db81
call fcn.0040a2b0
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 0x40da15
cmp dword [ebp - 0x38c], 0x200
jb 0x40d767
cmp dword [ebp - 0x38c], 0x20e
ja 0x40d767
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 0x40d7a2
cmp dword [ebp - 0x38c], 0x100
jne 0x40d77c
cmp dword [ebp - 0x388], 0x79
je 0x40d7a2
cmp dword [ebp - 0x38c], 0x104
je 0x40d7a2
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 0x40d8a4
mov edx, dword [ebp - 0x388]
and edx, 0xfffffff0
mov dword [ebp - 0x370], edx
cmp dword [ebp - 0x370], 0xf020
je 0x40d7ea
cmp dword [ebp - 0x370], 0xf030
je 0x40d846
cmp dword [ebp - 0x370], 0xf120
je 0x40d81b
jmp 0x40d8a4
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [eax], 0
je 0x40d7f9
jmp 0x40d8a4
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 0x40d8a4
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [ecx], 0
je 0x40d828
jmp 0x40d8a4
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 0x40d8a4
mov edx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [edx], 0
je 0x40d853
jmp 0x40d8a4
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.00409640
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 0x40d8b2
call fcn.0040ab70
cmp dword [ebp - 0x38c], 6
jne 0x40d8e3
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
test edx, edx
je 0x40d907
mov eax, dword [ebp - 0x388]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
jne 0x40d907
cmp dword [ebp - 0x38c], 0x1f
je 0x40d907
cmp dword [ebp - 0x38c], 8
je 0x40d907
cmp dword [ebp - 0x38c], 0x1c
jne 0x40d921
cmp dword [ebp - 0x388], 0
jne 0x40d921
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 0x40d9a0
cmp dword [ebp - 0x38c], 6
jne 0x40d951
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
cmp edx, 1
je 0x40d96c
mov eax, dword [ebp - 0x388]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 2
je 0x40d96c
cmp dword [ebp - 0x38c], 7
je 0x40d96c
cmp dword [ebp - 0x38c], 0x1c
jne 0x40d9a0
cmp dword [ebp - 0x388], 0
je 0x40d9a0
cmp dword [ebp - 0x38c], 7
jne 0x40d988
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 0x457ff8
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 0x40d9fa
mov eax, dword [0x458020]
cmp dword [eax + 8], 0
je 0x40d9ee
mov ecx, dword [0x458020]
cmp dword [ecx + 8], 3
jne 0x40d9fa
mov dword [ebp - 0x3a8], 1
jmp 0x40da04
mov dword [ebp - 0x3a8], 0
mov edx, dword [ebp - 0x3a8]
mov dword [ebp - 0x40c], edx
jmp 0x40d722
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [eax], 0
call fcn.0040ae40
call fcn.0040c820
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.004232f0
divsd xmm0, qword [0x428f40]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x354], xmm0
movzx eax, byte [0x4580c0]
test eax, eax
jne 0x40db7c
mov ecx, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x428f54]
lahf
test ah, 0x44
jnp 0x40dac7
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x374]
comiss xmm0, dword [0x428f30]
jb 0x40db7c
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 [0x428f48]
comiss xmm0, dword [eax]
jbe 0x40db1d
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 0x40db62
movss xmm0, dword [ebp - 0x360]
ucomiss xmm0, dword [0x428f24]
lahf
test ah, 0x44
jnp 0x40db62
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x360]
comiss xmm0, dword [0x428f30]
jbe 0x40db62
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 0x40d6e9
call fcn.00403ff0
call fcn.00403a70
mov eax, dword [0x458020]
mov edx, dword [eax]
mov ecx, dword [0x458020]
mov eax, dword [edx + 0x44]
call eax
call fcn.0040acc0
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.00422c66
mov esp, ebp
pop ebp
ret