Function at 0x40d0c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425212
mov eax, dword fs:[0]
push eax
sub esp, 0x408
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 str.fkzktlfgod_
lea ecx, [ebp - 0x3fc]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov dword [ebp - 0x3e0], eax
mov edx, dword [ebp - 0x3e0]
mov dword [ebp - 0x3f8], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3f8]
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 0x40d164
mov dword [ebp - 0x394], 1
jmp 0x40d16e
mov dword [ebp - 0x394], 0
mov cl, byte [ebp - 0x394]
mov byte [ebp - 0x349], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3fc]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
movzx edx, byte [ebp - 0x349]
test edx, edx
je 0x40d488
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.0040fb70
movzx eax, al
test eax, eax
je 0x40d1fa
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x400], ecx
xor edx, edx
je 0x40d1d6
mov byte [ebp - 0x345], 1
jmp 0x40d1dd
mov byte [ebp - 0x345], 0
movzx eax, byte [ebp - 0x345]
push eax
push 1
mov ecx, dword [ebp - 0x400]
call fcn.0040f9f0
mov dword [ebp - 0x35c], eax
jmp 0x40d204
mov dword [ebp - 0x35c], 0xffffffff
cmp dword [ebp - 0x35c], 0
jge 0x40d29d
push 0
push 0x4288ec
push 0x4288f8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x3a8], ecx
xor edx, edx
je 0x40d23e
mov byte [ebp - 0x346], 1
jmp 0x40d245
mov byte [ebp - 0x346], 0
movzx eax, byte [ebp - 0x346]
push eax
mov ecx, dword [ebp - 0x3a8]
call fcn.0040ff90
call fcn.00410070
mov dword [ebp - 0x3ac], 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 - 0x3ac]
jmp 0x40dba9
mov dword [ebp - 0x368], 0
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x3b0], ecx
push 0
lea edx, [ebp - 0x344]
push edx
mov ecx, dword [ebp - 0x3b0]
call fcn.0040fce0
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x368]
add eax, 1
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x35c], 0
jle 0x40d460
cmp dword [ebp - 0x338], 0x64
je 0x40d3d4
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 - 0x3b4], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3b4]
call fcn.0040fc20
push 0
push 0x428920
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 - 0x3b8], ecx
xor edx, edx
je 0x40d375
mov byte [ebp - 0x347], 1
jmp 0x40d37c
mov byte [ebp - 0x347], 0
movzx eax, byte [ebp - 0x347]
push eax
mov ecx, dword [ebp - 0x3b8]
call fcn.0040ff90
call fcn.00410070
mov dword [ebp - 0x3bc], 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 - 0x3bc]
jmp 0x40dba9
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 - 0x3c0], edx
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x3c0]
call fcn.0040fc20
mov ecx, dword [0x4580bc]
mov dword [ebp - 0x3c4], ecx
xor edx, edx
je 0x40d43f
mov byte [ebp - 0x348], 1
jmp 0x40d446
mov byte [ebp - 0x348], 0
movzx eax, byte [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x3c4]
call fcn.0040ff90
call fcn.00410070
jmp 0x40d470
cmp dword [ebp - 0x368], 0x3e8
jne 0x40d2a7
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 - 0x404], 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.0040b490
add esp, 0xc
mov dword [ebp - 0x3c8], eax
cmp dword [ebp - 0x3c8], 0
jne 0x40d4f9
mov dword [ebp - 0x3cc], 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 - 0x3cc]
jmp 0x40dba9
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 - 0x3d0]
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 - 0x3d0]
push ecx
lea edx, [ebp - 0x114]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x3d8], 0
mov dword [ebp - 0x3d4], 0
lea eax, [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x3d8]
push ecx
push str.StringFileInfo000004b0FileVersion
mov edx, dword [ebp - 0x39c]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d603
call dword [sym.imp.Engine.dll_class_CUIManager____cdecl_SE_Get_UIManagerPtr_void_]
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x40c]
mov dword [ebp - 0x3a0], eax
mov ecx, 4
imul edx, ecx, 0xa8
mov eax, dword [ebp - 0x3dc]
mov ecx, dword [eax + edx + 0x258]
mov dword [ebp - 0x3a0], ecx
push str.Valiance
mov ecx, dword [ebp - 0x3a0]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CUILoginNew::setVersion_char_const__]
mov edx, dword [ebp - 0x36c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x3f4], 1
mov ecx, dword [sym.imp.Engine.dll_char__g_szExitError]
cmp dword [ecx], 0
jne 0x40d662
cmp dword [ebp - 0x3f4], 0
je 0x40d662
mov edx, dword [sym.imp.Engine.dll_class_CGameState___pGameState]
mov ecx, dword [edx]
call dword [sym.imp.Engine.dll_public:_int____thiscall_CGameState::Running_void_]
mov dword [eax], 1
mov eax, dword [sym.imp.Engine.dll_class_CGameState___pGameState]
mov ecx, dword [eax]
call dword [sym.imp.Engine.dll_public:_int____thiscall_CGameState::QuitScreen_void_]
mov dword [eax], 1
mov ecx, dword [0x45804c]
mov dword [ecx + 8], 0
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
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]
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 ecx, dword [sym.imp.Engine.dll_bool_DiscordUpdateData]
mov byte [ecx], 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::Running_void_]
cmp dword [eax], 0
je 0x40db64
push 0x42818e
mov ecx, 0x45805c
call dword [sym.imp.Engine.dll_public:_int___thiscall_CTString::operator_char_const__const]
test eax, eax
je 0x40db64
call fcn.0040a2b0
call fcn.00403b60
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x390]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40d9f9
cmp dword [ebp - 0x38c], 0x200
jb 0x40d74b
cmp dword [ebp - 0x38c], 0x20e
ja 0x40d74b
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 0x40d786
cmp dword [ebp - 0x38c], 0x100
jne 0x40d760
cmp dword [ebp - 0x388], 0x79
je 0x40d786
cmp dword [ebp - 0x38c], 0x104
je 0x40d786
lea ecx, [ebp - 0x390]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x390]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x38c], 0x112
jne 0x40d888
mov eax, dword [ebp - 0x388]
and eax, 0xfffffff0
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x370], 0xf020
je 0x40d7ce
cmp dword [ebp - 0x370], 0xf030
je 0x40d82a
cmp dword [ebp - 0x370], 0xf120
je 0x40d7ff
jmp 0x40d888
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [ecx], 0
je 0x40d7de
jmp 0x40d888
mov edx, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [edx], 1
push 6
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40d888
mov edx, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [edx], 0
je 0x40d80c
jmp 0x40d888
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [eax], 1
push 1
mov ecx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40d888
mov eax, dword [sym.imp.Engine.dll_int__bWindowChanging]
cmp dword [eax], 0
je 0x40d836
jmp 0x40d888
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [ecx], 1
push 1
mov edx, dword [sym.imp.Engine.dll_long_int_sam_iDisplayDepth]
mov eax, dword [edx]
push eax
mov ecx, dword [sym.imp.Engine.dll_long_int_sam_iScreenSizeJ]
mov edx, dword [ecx]
push edx
mov eax, dword [sym.imp.Engine.dll_long_int_sam_iScreenSizeI]
mov ecx, dword [eax]
push ecx
mov edx, dword [sym.imp.Engine.dll_long_int_sam_iDisplayAdapter]
mov eax, dword [edx]
push eax
mov ecx, dword [sym.imp.Engine.dll_long_int_sam_iGfxAPI]
mov edx, dword [ecx]
push edx
call fcn.00409640
add esp, 0x18
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]
cmp dword [ebp - 0x38c], 0x12
jne 0x40d896
call fcn.0040ab60
cmp dword [ebp - 0x38c], 6
jne 0x40d8c8
mov edx, dword [ebp - 0x388]
and edx, 0xffff
movzx eax, dx
test eax, eax
je 0x40d8ec
mov ecx, dword [ebp - 0x388]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
test edx, edx
jne 0x40d8ec
cmp dword [ebp - 0x38c], 0x1f
je 0x40d8ec
cmp dword [ebp - 0x38c], 8
je 0x40d8ec
cmp dword [ebp - 0x38c], 0x1c
jne 0x40d905
cmp dword [ebp - 0x388], 0
jne 0x40d905
push 0
push 1
push 0x282
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40d984
cmp dword [ebp - 0x38c], 6
jne 0x40d936
mov edx, dword [ebp - 0x388]
and edx, 0xffff
movzx eax, dx
cmp eax, 1
je 0x40d951
mov ecx, dword [ebp - 0x388]
and ecx, 0xffff
movzx edx, cx
cmp edx, 2
je 0x40d951
cmp dword [ebp - 0x38c], 7
je 0x40d951
cmp dword [ebp - 0x38c], 0x1c
jne 0x40d984
cmp dword [ebp - 0x388], 0
je 0x40d984
cmp dword [ebp - 0x38c], 7
jne 0x40d96d
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 eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.Engine.dll_class_CUIManager____cdecl_SE_Get_UIManagerPtr_void_]
mov dword [ebp - 0x3e4], eax
push 0x457ff8
lea edx, [ebp - 0x390]
push edx
mov ecx, dword [ebp - 0x3e4]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CUIManager::MsgProc_struct_tagMSG___int__]
mov eax, dword [sym.imp.Engine.dll_class_CGameState___pGameState]
mov ecx, dword [eax]
call dword [sym.imp.Engine.dll_public:_long_int____thiscall_CGameState::GetGameMode_void_]
cmp dword [eax], 0
jne 0x40d9de
mov ecx, dword [0x45804c]
cmp dword [ecx + 8], 0
je 0x40d9d2
mov edx, dword [0x45804c]
cmp dword [edx + 8], 3
jne 0x40d9de
mov dword [ebp - 0x3a4], 1
jmp 0x40d9e8
mov dword [ebp - 0x3a4], 0
mov eax, dword [ebp - 0x3a4]
mov dword [ebp - 0x408], eax
jmp 0x40d706
mov ecx, dword [sym.imp.Engine.dll_int__bWindowChanging]
mov dword [ecx], 0
call fcn.0040ae20
call fcn.0040c800
mov edx, dword [ebp - 0x364]
add edx, 1
mov dword [ebp - 0x364], edx
mov eax, dword [sym.imp.Engine.dll_class_CTimer___pTimer]
mov ecx, dword [eax]
mov dword [ebp - 0x3e8], ecx
lea edx, [ebp - 0x414]
push edx
mov ecx, dword [ebp - 0x3e8]
call dword [sym.imp.Engine.dll_public:_class_CTimerValue___thiscall_CTimer::GetHighPrecisionTimer_void_]
mov dword [ebp - 0x3ec], eax
mov eax, dword [ebp - 0x3ec]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
call fcn.004231d0
divsd xmm0, qword [0x428f38]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x354], xmm0
movzx ecx, byte [0x4580c0]
test ecx, ecx
jne 0x40db5f
mov edx, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss xmm0, dword [edx]
ucomiss xmm0, dword [0x428f4c]
lahf
test ah, 0x44
jnp 0x40daab
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x374]
comiss xmm0, dword [0x428f2c]
jb 0x40db5f
cvtsi2ss xmm0, dword [ebp - 0x364]
movss xmm1, dword [ebp - 0x354]
subss xmm1, dword [ebp - 0x374]
divss xmm0, xmm1
mov eax, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss dword [eax], xmm0
mov ecx, dword [sym.imp.Engine.dll_float_g_fFramePerSecond]
movss xmm0, dword [0x428f40]
comiss xmm0, dword [ecx]
jbe 0x40db01
movss xmm0, dword [ebp - 0x354]
movss dword [ebp - 0x360], xmm0
mov edx, dword [sym.imp.Engine.dll_int_g_bNoPlaySnd]
mov dword [edx], 1
jmp 0x40db45
movss xmm0, dword [ebp - 0x360]
ucomiss xmm0, dword [0x428f20]
lahf
test ah, 0x44
jnp 0x40db45
movss xmm0, dword [ebp - 0x354]
subss xmm0, dword [ebp - 0x360]
comiss xmm0, dword [0x428f2c]
jbe 0x40db45
xorps xmm0, xmm0
movss dword [ebp - 0x360], xmm0
mov eax, dword [sym.imp.Engine.dll_int_g_bNoPlaySnd]
mov dword [eax], 0
mov dword [ebp - 0x364], 0
movss xmm0, dword [ebp - 0x354]
movss dword [ebp - 0x374], xmm0
jmp 0x40d6cd
call fcn.00403ff0
call fcn.00403a70
mov ecx, dword [0x45804c]
mov edx, dword [ecx]
mov ecx, dword [0x45804c]
mov eax, dword [edx + 0x44]
call eax
call fcn.0040aca0
mov dword [ebp - 0x3f0], 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 - 0x3f0]
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.00422b46
mov esp, ebp
pop ebp
ret