Function at 0x4100e0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x462478
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 [0x482764]
push ecx
xor ebx, ebx
add eax, 0xfffffff0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x20], esp
mov edi, esp
push eax
mov esi, ecx
call fcn.0040a710
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040dfc0
cmp eax, ebx
mov dword [esi + 0xe0], eax
jne 0x41016d
mov esi, dword [ebp - 0x18]
push 0x46df28
mov ecx, esi
call fcn.0040aca0
mov eax, esi
jmp 0x4104d8
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0xf0], eax
call fcn.004238c5
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41019a
push 0x80004005
call fcn.0040a390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
push 0x208
mov dword [ebp - 4], ebx
push 0x481de8
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0xf0]
push ebx
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x410535
mov eax, 0x481de8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4101d7
sub eax, edx
sar eax, 1
push eax
push 0x481de8
mov ecx, 0x482780
call fcn.0040a600
mov eax, dword [0x482780]
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 0x46dff8
lea eax, [ebp]
push eax
mov dword [ebp - 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
je 0x4104ff
cmp dword [ebp - 0x14], ebx
je 0x4104ff
push 8
call fcn.00418830
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]
add esp, 4
push eax
lea edx, [ebp - 0x44]
push edx
mov word [esi + 6], ax
call fcn.00412fd0
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
movzx eax, word [esi + 4]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00412fd0
mov ebx, eax
mov byte [ebp - 4], 3
movzx edx, word [esi + 2]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00412fd0
mov edi, eax
mov byte [ebp - 4], 4
movzx ecx, word [esi]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00412fd0
push 0x46df1c
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.00409c10
add esp, 0xc
push edi
push eax
lea ecx, [ebp - 0x38]
push ecx
mov byte [ebp - 4], 6
call fcn.00409b50
add esp, 0xc
push 0x46df1c
push eax
lea edx, [ebp - 0x40]
push edx
mov byte [ebp - 4], 7
call fcn.00409c10
add esp, 0xc
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 8
call fcn.00409b50
add esp, 0xc
push 0x46df1c
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00409c10
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
push eax
lea eax, [ebp - 0x4c]
mov bl, 0xa
push eax
mov byte [ebp - 4], bl
call fcn.00409b50
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.0040a580
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 0x41035d
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 0x410380
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 0x4103a3
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 0x4103c6
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 0x4103e9
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 0x41040c
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 0x41042f
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 0x410452
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 0x410475
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 0x410498
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 - 0x1c]
add esi, 0xfffffff0
push esi
call fcn.0040a710
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 0x4104d6
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.00433873
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push str.Error:_Fail_to_detect_game_version.
mov ecx, esi
call fcn.0040aca0
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 0x410567
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4104d8
mov esi, dword [ebp - 0x18]
push str.Error:_Fail_to_detect_games_exe_file_path.
mov ecx, esi
call fcn.0040aca0
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 0x410567
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4104d8