Function at 0x40f0e0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x462488
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 [0x485720]
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.00408420
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040cf70
cmp eax, ebx
mov dword [esi + 0xd8], eax
jne 0x40f16d
mov esi, dword [ebp - 0x18]
push str.Error:_Game_is_not_running__fail_to_detect_game_version.
mov ecx, esi
call fcn.00408820
mov eax, esi
jmp 0x40f4ca
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xdc], eax
call fcn.004227d9
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40f19a
push 0x80004005
call fcn.00408910
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 0x481e18
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0xdc]
push ebx
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40f4f1
mov eax, 0x481e18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f1d7
sub eax, edx
sar eax, 1
push eax
push 0x481e18
mov ecx, 0x48573c
call fcn.00408310
mov eax, dword [0x48573c]
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 0x46dfa0
lea eax, [ebp]
push eax
mov dword [ebp - 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
push 8
call fcn.00417705
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.00409ae0
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.00409ae0
mov ebx, eax
mov byte [ebp - 4], 3
movzx eax, word [esi + 2]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00409ae0
mov edi, eax
mov byte [ebp - 4], 4
movzx edx, word [esi]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00409ae0
push 0x46dec8
push eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 5
call fcn.00407710
add esp, 0xc
push edi
push eax
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 6
push edx
call fcn.00407650
add esp, 0xc
push 0x46dec8
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call fcn.00407710
add esp, 0xc
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 8
call fcn.00407650
add esp, 0xc
push 0x46dec8
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 9
call fcn.00407710
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.00407650
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00408290
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 0x40f34f
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 0x40f372
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 0x40f395
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 0x40f3b8
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 0x40f3db
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 0x40f3fe
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 0x40f421
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 0x40f444
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 0x40f467
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 0x40f48a
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.00408420
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 0x40f4c8
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.004327b6
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.00408820
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 0x40f523
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40f4ca