Function at 0x40d310
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425462
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 0x40d3b4
mov dword [ebp - 0x394], 1
jmp 0x40d3be
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 0x40d6d8
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.0040fef0
movzx eax, al
test eax, eax
je 0x40d44a
mov ecx, dword [0x459054]
mov dword [ebp - 0x404], ecx
xor edx, edx
je 0x40d426
mov byte [ebp - 0x345], 1
jmp 0x40d42d
mov byte [ebp - 0x345], 0
movzx eax, byte [ebp - 0x345]
push eax
push 1
mov ecx, dword [ebp - 0x404]
call fcn.0040fd70
mov dword [ebp - 0x35c], eax
jmp 0x40d454
mov dword [ebp - 0x35c], 0xffffffff
cmp dword [ebp - 0x35c], 0
jge 0x40d4ed
push 0
push 0x42891c
push 0x428928
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x459054]
mov dword [ebp - 0x3ac], ecx
xor edx, edx
je 0x40d48e
mov byte [ebp - 0x346], 1
jmp 0x40d495
mov byte [ebp - 0x346], 0
movzx eax, byte [ebp - 0x346]
push eax
mov ecx, dword [ebp - 0x3ac]
call fcn.00410310
call fcn.004103f0
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 0x40de05
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.00410060
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x368]
add eax, 1
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x35c], 0
jle 0x40d6b0
cmp dword [ebp - 0x338], 0x64
je 0x40d624
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.0040ffa0
push 0
push 0x428950
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 0x40d5c5
mov byte [ebp - 0x347], 1
jmp 0x40d5cc
mov byte [ebp - 0x347], 0
movzx eax, byte [ebp - 0x347]
push eax
mov ecx, dword [ebp - 0x3bc]
call fcn.00410310
call fcn.004103f0
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 0x40de05
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.0040ffa0
mov ecx, dword [0x459054]
mov dword [ebp - 0x3c8], ecx
xor edx, edx
je 0x40d68f
mov byte [ebp - 0x348], 1
jmp 0x40d696
mov byte [ebp - 0x348], 0
movzx eax, byte [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x3c8]
call fcn.00410310
call fcn.004103f0
jmp 0x40d6c0
cmp dword [ebp - 0x368], 0x3e8
jne 0x40d4f7
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 0x40d749
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 0x40de05
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 0x40d861
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 0x40d8c0
cmp dword [ebp - 0x3f8], 0
je 0x40d8c0
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 0x40ddc1
push 0x4281b7
mov ecx, 0x458ff4
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x40ddc1
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 0x40dc55
cmp dword [ebp - 0x38c], 0x200
jb 0x40d9a7
cmp dword [ebp - 0x38c], 0x20e
ja 0x40d9a7
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 0x40d9e2
cmp dword [ebp - 0x38c], 0x100
jne 0x40d9bc
cmp dword [ebp - 0x388], 0x79
je 0x40d9e2
cmp dword [ebp - 0x38c], 0x104
je 0x40d9e2
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 0x40dae4
mov edx, dword [ebp - 0x388]
and edx, 0xfffffff0
mov dword [ebp - 0x370], edx
cmp dword [ebp - 0x370], 0xf020
je 0x40da2a
cmp dword [ebp - 0x370], 0xf030
je 0x40da86
cmp dword [ebp - 0x370], 0xf120
je 0x40da5b
jmp 0x40dae4
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [eax], 0
je 0x40da39
jmp 0x40dae4
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 0x40dae4
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [ecx], 0
je 0x40da68
jmp 0x40dae4
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 0x40dae4
mov edx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [edx], 0
je 0x40da93
jmp 0x40dae4
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 0x40daf2
call fcn.0040ad40
cmp dword [ebp - 0x38c], 6
jne 0x40db23
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
test edx, edx
je 0x40db47
mov eax, dword [ebp - 0x388]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
test ecx, ecx
jne 0x40db47
cmp dword [ebp - 0x38c], 0x1f
je 0x40db47
cmp dword [ebp - 0x38c], 8
je 0x40db47
cmp dword [ebp - 0x38c], 0x1c
jne 0x40db61
cmp dword [ebp - 0x388], 0
jne 0x40db61
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 0x40dbe0
cmp dword [ebp - 0x38c], 6
jne 0x40db91
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
cmp edx, 1
je 0x40dbac
mov eax, dword [ebp - 0x388]
and eax, 0xffff
movzx ecx, ax
cmp ecx, 2
je 0x40dbac
cmp dword [ebp - 0x38c], 7
je 0x40dbac
cmp dword [ebp - 0x38c], 0x1c
jne 0x40dbe0
cmp dword [ebp - 0x388], 0
je 0x40dbe0
cmp dword [ebp - 0x38c], 7
jne 0x40dbc8
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 0x40dc3a
mov eax, dword [0x458fb8]
cmp dword [eax + 8], 0
je 0x40dc2e
mov ecx, dword [0x458fb8]
cmp dword [ecx + 8], 3
jne 0x40dc3a
mov dword [ebp - 0x3a8], 1
jmp 0x40dc44
mov dword [ebp - 0x3a8], 0
mov edx, dword [ebp - 0x3a8]
mov dword [ebp - 0x40c], edx
jmp 0x40d962
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [eax], 0
call fcn.0040b010
call fcn.0040ca60
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.00423470
divsd xmm0, qword [0x427d30]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x354], xmm0
movzx eax, byte [0x459058]
test eax, eax
jne 0x40ddbc
mov ecx, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss xmm0, dword [ecx]
ucomiss xmm0, dword [0x428f64]
lahf
test ah, 0x44
jnp 0x40dd07
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x374]
comiss xmm0, dword [0x428f4c]
jb 0x40ddbc
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 [0x428f58]
comiss xmm0, dword [eax]
jbe 0x40dd5d
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 0x40dda2
movss xmm0, dword [ebp - 0x360]
ucomiss xmm0, dword [0x428f40]
lahf
test ah, 0x44
jnp 0x40dda2
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x360]
comiss xmm0, dword [0x428f4c]
jbe 0x40dda2
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 0x40d929
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.00422e9a
mov esp, ebp
pop ebp
ret