Function at 0x40eda0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x462118
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.004083c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040cd60
cmp eax, ebx
mov dword [esi + 0xd8], eax
jne 0x40ee2d
mov esi, dword [ebp - 0x18]
push str.Error:_Game_is_not_running__fail_to_detect_game_version.
mov ecx, esi
call fcn.004087b0
mov eax, esi
jmp 0x40f18a
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xdc], eax
call fcn.00422466
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ee5a
push 0x80004005
call fcn.004088a0
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 0x40f1b1
mov eax, 0x481e18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ee97
sub eax, edx
sar eax, 1
push eax
push 0x481e18
mov ecx, 0x48573c
call fcn.004082b0
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 0x46ded0
lea eax, [ebp]
push eax
mov dword [ebp - 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
push 8
call fcn.004173a5
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.00409b00
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.00409b00
mov ebx, eax
mov byte [ebp - 4], 3
movzx eax, word [esi + 2]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00409b00
mov edi, eax
mov byte [ebp - 4], 4
movzx edx, word [esi]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00409b00
push 0x46ddf8
push eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 5
call fcn.004076b0
add esp, 0xc
push edi
push eax
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 6
push edx
call fcn.004075f0
add esp, 0xc
push 0x46ddf8
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call fcn.004076b0
add esp, 0xc
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 8
call fcn.004075f0
add esp, 0xc
push 0x46ddf8
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 9
call fcn.004076b0
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.004075f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00408230
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 0x40f00f
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 0x40f032
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 0x40f055
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 0x40f078
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 0x40f09b
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 0x40f0be
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 0x40f0e1
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 0x40f104
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 0x40f127
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 0x40f14a
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.004083c0
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 0x40f188
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.00432456
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.004087b0
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 0x40f1e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40f18a