Function at 0x40d2e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425412
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4320e8]
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 str.fkzktlfgod_
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 0x40d384
mov dword [ebp - 0x394], 1
jmp 0x40d38e
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 0x40d6a8
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.0040fec0
movzx eax, al
test eax, eax
je 0x40d41a
mov ecx, dword [0x459054]
mov dword [ebp - 0x404], ecx
xor edx, edx
je 0x40d3f6
mov byte [ebp - 0x345], 1
jmp 0x40d3fd
mov byte [ebp - 0x345], 0
movzx eax, byte [ebp - 0x345]
push eax
push 1
mov ecx, dword [ebp - 0x404]
call fcn.0040fd40
mov dword [ebp - 0x35c], eax
jmp 0x40d424
mov dword [ebp - 0x35c], 0xffffffff
cmp dword [ebp - 0x35c], 0
jge 0x40d4bd
push 0
push 0x42890c
push 0x428918
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x459054]
mov dword [ebp - 0x3ac], ecx
xor edx, edx
je 0x40d45e
mov byte [ebp - 0x346], 1
jmp 0x40d465
mov byte [ebp - 0x346], 0
movzx eax, byte [ebp - 0x346]
push eax
mov ecx, dword [ebp - 0x3ac]
call fcn.004102e0
call fcn.004103c0
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 0x40ddd5
mov dword [ebp - 0x368], 0
mov ecx, dword [0x459054]
mov dword [ebp - 0x3b4], ecx
push 0
lea edx, [ebp - 0x344]
push edx
mov ecx, dword [ebp - 0x3b4]
call fcn.00410030
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x368]
add eax, 1
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x35c], 0
jle 0x40d680
cmp dword [ebp - 0x338], 0x64
je 0x40d5f4
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 [0x459054]
mov dword [ebp - 0x3b8], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3b8]
call fcn.0040ff70
push 0
push 0x428940
push str.This_program_could_not_be_run_itself
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x459054]
mov dword [ebp - 0x3bc], ecx
xor edx, edx
je 0x40d595
mov byte [ebp - 0x347], 1
jmp 0x40d59c
mov byte [ebp - 0x347], 0
movzx eax, byte [ebp - 0x347]
push eax
mov ecx, dword [ebp - 0x3bc]
call fcn.004102e0
call fcn.004103c0
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 0x40ddd5
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 [0x459054]
mov dword [ebp - 0x3c4], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3c4]
call fcn.0040ff70
mov ecx, dword [0x459054]
mov dword [ebp - 0x3c8], ecx
xor edx, edx
je 0x40d65f
mov byte [ebp - 0x348], 1
jmp 0x40d666
mov byte [ebp - 0x348], 0
movzx eax, byte [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x3c8]
call fcn.004102e0
call fcn.004103c0
jmp 0x40d690
cmp dword [ebp - 0x368], 0x3e8
jne 0x40d4c7
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.0040a900
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.0040b680
add esp, 0xc
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
jne 0x40d719
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 0x40ddd5
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 0x40d831
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, 0xa7
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 0x40d890
cmp dword [ebp - 0x3f8], 0
je 0x40d890
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 [0x458fb8]
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.0040a790
call fcn.004041e0
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 0x40dd91
push 0x4281a7
mov ecx, 0x458ff4
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x40dd91
call fcn.0040a480
call fcn.00403bb0
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 0x40dc25
cmp dword [ebp - 0x38c], 0x200
jb 0x40d977
cmp dword [ebp - 0x38c], 0x20e
ja 0x40d977
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 0x40d9b2
cmp dword [ebp - 0x38c], 0x100
jne 0x40d98c
cmp dword [ebp - 0x388], 0x79
je 0x40d9b2
cmp dword [ebp - 0x38c], 0x104
je 0x40d9b2
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 0x40dab4
mov edx, dword [ebp - 0x388]
and edx, 0xfffffff0
mov dword [ebp - 0x370], edx
cmp dword [ebp - 0x370], 0xf020
je 0x40d9fa
cmp dword [ebp - 0x370], 0xf030
je 0x40da56
cmp dword [ebp - 0x370], 0xf120
je 0x40da2b
jmp 0x40dab4
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [eax], 0
je 0x40da09
jmp 0x40dab4
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 0x40dab4
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [ecx], 0
je 0x40da38
jmp 0x40dab4
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 0x40dab4
mov edx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [edx], 0
je 0x40da63
jmp 0x40dab4
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.00409820
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 0x40dac2
call fcn.0040ad40
cmp dword [ebp - 0x38c], 6
jne 0x40daf3
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
test edx, edx
je 0x40db17
mov eax, dword [ebp - 0x388]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
jne 0x40db17
cmp dword [ebp - 0x38c], 0x1f
je 0x40db17
cmp dword [ebp - 0x38c], 8
je 0x40db17
cmp dword [ebp - 0x38c], 0x1c
jne 0x40db31
cmp dword [ebp - 0x388], 0
jne 0x40db31
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 0x40dbb0
cmp dword [ebp - 0x38c], 6
jne 0x40db61
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
cmp edx, 1
je 0x40db7c
mov eax, dword [ebp - 0x388]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 2
je 0x40db7c
cmp dword [ebp - 0x38c], 7
je 0x40db7c
cmp dword [ebp - 0x38c], 0x1c
jne 0x40dbb0
cmp dword [ebp - 0x388], 0
je 0x40dbb0
cmp dword [ebp - 0x38c], 7
jne 0x40db98
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 0x458f90
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 0x40dc0a
mov eax, dword [0x458fb8]
cmp dword [eax + 8], 0
je 0x40dbfe
mov ecx, dword [0x458fb8]
cmp dword [ecx + 8], 3
jne 0x40dc0a
mov dword [ebp - 0x3a8], 1
jmp 0x40dc14
mov dword [ebp - 0x3a8], 0
mov edx, dword [ebp - 0x3a8]
mov dword [ebp - 0x40c], edx
jmp 0x40d932
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [eax], 0
call fcn.0040b010
call fcn.0040ca30
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.00423420
divsd xmm0, qword [0x427d20]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x354], xmm0
movzx eax, byte [0x459058]
test eax, eax
jne 0x40dd8c
mov ecx, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x428f54]
lahf
test ah, 0x44
jnp 0x40dcd7
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x374]
comiss xmm0, dword [0x428f3c]
jb 0x40dd8c
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 0x40dd2d
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 0x40dd72
movss xmm0, dword [ebp - 0x360]
ucomiss xmm0, dword [0x428f30]
lahf
test ah, 0x44
jnp 0x40dd72
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x360]
comiss xmm0, dword [0x428f3c]
jbe 0x40dd72
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 0x40d8f9
call fcn.004041e0
call fcn.00403ac0
mov eax, dword [0x458fb8]
mov edx, dword [eax]
mov ecx, dword [0x458fb8]
mov eax, dword [edx + 0x44]
call eax
call fcn.0040ae90
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.00422e4c
mov esp, ebp
pop ebp
ret