Function at 0x40f8f0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x462c38
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x47c748]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x485768]
push ecx
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x1c], esp
mov edi, esp
push eax
mov esi, ecx
call fcn.00408510
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040d8c0
cmp eax, ebx
mov dword [esi + 0xd8], eax
jne 0x40f97d
mov esi, dword [ebp - 0x18]
push str.Error:_Game_is_not_running__fail_to_detect_game_version.
mov ecx, esi
call fcn.00408910
mov eax, esi
jmp 0x40fcda
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xdc], eax
call fcn.00422f96
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40f9aa
push 0x80004005
call fcn.00408a00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
push 0x208
mov dword [ebp - 4], ebx
push 0x481e58
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0xdc]
push ebx
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40fd01
mov eax, 0x481e58
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f9e7
sub eax, edx
sar eax, 1
push eax
push 0x481e58
mov ecx, 0x485784
call fcn.00408400
mov eax, dword [0x485784]
lea edx, [ebp]
push edx
push 0x800
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x46e5c8
lea eax, [ebp]
push eax
mov dword [ebp - 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
push 8
call fcn.00417eb5
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx + 0xa]
mov esi, eax
mov word [esi], dx
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 8]
mov word [esi + 2], cx
mov edx, dword [ebp - 0x14]
mov ax, word [edx + 0xe]
mov word [esi + 4], ax
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xc]
movzx edx, ax
add esp, 4
mov word [esi + 6], ax
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.00409c30
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
movzx ecx, word [esi + 4]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00409c30
mov ebx, eax
mov byte [ebp - 4], 3
movzx eax, word [esi + 2]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00409c30
mov edi, eax
mov byte [ebp - 4], 4
movzx edx, word [esi]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00409c30
push 0x46e4e8
push eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 5
call fcn.00407800
add esp, 0xc
push edi
push eax
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 6
push edx
call fcn.00407740
add esp, 0xc
push 0x46e4e8
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call fcn.00407800
add esp, 0xc
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 8
call fcn.00407740
add esp, 0xc
push 0x46e4e8
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 9
call fcn.00407800
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp - 0x4c]
mov bl, 0xa
push edx
mov byte [ebp - 4], bl
call fcn.00407740
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00408380
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fbc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fbeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x20]
add esi, 0xfffffff0
push esi
call fcn.00408510
mov edi, dword [ebp - 0x18]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fcd8
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00432f66
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push str.Error:_Fail_to_detect_games_exe_file_path.
mov ecx, esi
call fcn.00408910
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40fcda