Function at 0x40e790
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x461b48
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x47b748]
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 [0x484718]
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.004083b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040ca80
cmp eax, ebx
mov dword [esi + 0xdc], eax
jne 0x40e81d
mov esi, dword [ebp - 0x18]
push str.Error:_Game_is_not_running__fail_to_detect_game_version.
mov ecx, esi
call fcn.004087a0
mov eax, esi
jmp 0x40eb7a
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xe0], eax
call fcn.00421e9f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e84a
push 0x80004005
call fcn.00408890
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 0x480e18
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0xe0]
push ebx
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40eba1
mov eax, 0x480e18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e887
sub eax, edx
sar eax, 1
push eax
push 0x480e18
mov ecx, 0x484734
call fcn.004082a0
mov eax, dword [0x484734]
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 0x46d248
lea eax, [ebp]
push eax
mov dword [ebp - 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
push 8
call fcn.00416dc0
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.00409ab0
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.00409ab0
mov ebx, eax
mov byte [ebp - 4], 3
movzx eax, word [esi + 2]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00409ab0
mov edi, eax
mov byte [ebp - 4], 4
movzx edx, word [esi]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00409ab0
push 0x46d170
push eax
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 5
call fcn.004076a0
add esp, 0xc
push edi
push eax
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 6
push edx
call fcn.004075e0
add esp, 0xc
push 0x46d170
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 7
call fcn.004076a0
add esp, 0xc
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 8
call fcn.004075e0
add esp, 0xc
push 0x46d170
push eax
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 9
call fcn.004076a0
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.004075e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00408220
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 0x40e9ff
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 0x40ea22
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 0x40ea45
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 0x40ea68
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 0x40ea8b
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 0x40eaae
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 0x40ead1
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 0x40eaf4
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 0x40eb17
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 0x40eb3a
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.004083b0
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 0x40eb78
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.00431e76
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.004087a0
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 0x40ebd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40eb7a