Function at 0x1018a0f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x200
mov eax, dword [0x10252964]
xor eax, esp
mov dword [esp + 0x1fc], eax
mov eax, dword [esp + 0x204]
push ebx
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
jne 0x1018a13d
call fcn.1018f2c0
mov ecx, dword [0x10264edc]
mov eax, ecx
mov dx, word [0x10251718]
and eax, 0x3ff
cmp dx, ax
je 0x1018a14c
test dx, dx
je 0x1018a14c
movzx ecx, dx
jmp 0x1018a140
movzx ecx, ax
or ecx, 0x800
mov dword [0x10264edc], ecx
mov eax, ecx
and eax, 0x3ff
cmp eax, 9
je 0x1018a401
push ebp
push esi
push 0x104
call fcn.100f58b0
mov edi, eax
add esp, 4
test edi, edi
je 0x1018a3f4
push dword [0x10264edc]
call fcn.1018f170
mov esi, eax
test esi, esi
je 0x1018a3f4
push 0x104
push edi
push dword [0x1026692c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1018a1a1
sub ecx, edx
add ecx, edi
nop dword [eax]
mov edx, ecx
dec ecx
cmp byte [ecx], 0x2e
jne 0x1018a1b0
mov byte [edx], 0x6c
movzx eax, byte [esi]
mov byte [edx + 1], al
movzx eax, byte [esi + 1]
mov byte [edx + 2], al
mov byte [edx + 3], bl
nop dword [eax + eax]
mov ebp, ecx
dec ecx
cmp byte [ecx], 0x5c
jne 0x1018a1d0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x1018a3f4
push esi
call fcn.100f58b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1018a3f4
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1018a3f4
push 0x1005be90
lea eax, [esp + 0xac]
push 0x64
push eax
call fcn.100f674d
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xb0]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1018a2ea
push ebp
push dword [esp + 0x14]
call fcn.101e7e04
add esp, 8
test eax, eax
je 0x1018a27f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 1
push eax
push 0x46c
jmp 0x1018a35b
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1018a2ea
push 0x100453e0
lea eax, [esp + 0xac]
push 0x64
push eax
call fcn.100f674d
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xb0]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1018a36e
cmp dword [esp + 0x18], 0x34
jne 0x1018a2ea
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
cmp ecx, 0x6003e
ja 0x1018a312
jb 0x1018a312
push edi
call fcn.1018f290
test eax, eax
jne 0x1018a3ec
push 0x46b
mov dword [0x10264edc], 0x809
call fcn.1018f240
push eax
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x1018a378
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [esp + 0x2c]
push ecx
push 0x1005bebc
push eax
call esi
push 0x3e
push 6
lea eax, [esp + 0x58]
push 0x1005bebc
push eax
call esi
add esp, 0x20
lea eax, [esp + 0x28]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push 2
push eax
push 0x46d
call fcn.1018f240
push eax
lea eax, [esp + 0x118]
push eax
call fcn.1018f0e0
mov dword [0x10264edc], 0x809
push 0x1005bec4
lea eax, [esp + 0x110]
push 0xff
push eax
call fcn.101e7d60
add esp, 0xc
push 0xdf01
call fcn.1018f240
push eax
lea eax, [esp + 0x110]
push 0xff
push eax
call fcn.101e7d60
add esp, 0xc
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x20]
push 1
push eax
push 0xdf00
call fcn.1018f240
push eax
lea eax, [esp + 0x80]
push eax
call fcn.1018f0e0
push 0x30
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x114]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x10264edc]
jmp 0x1018a3ff
mov ecx, 0x809
mov dword [0x10264edc], ecx
pop esi
pop ebp
and ecx, 0x3ff
mov word [0x10251718], cx
test ebx, ebx
je 0x1018a41b
push ebx
call fcn.100f260c
add esp, 4
test edi, edi
je 0x1018a428
push edi
call fcn.100f260c
add esp, 4
mov edx, dword [esp + 0x20c]
pop edi
pop ebx
test edx, edx
jne 0x1018a44f
lea eax, [edx + 1]
mov ecx, dword [esp + 0x1fc]
xor ecx, esp
call fcn.101c1860
add esp, 0x200
ret 4
movzx ecx, word [0x10251718]
xor eax, eax
cmp edx, ecx
mov ecx, dword [esp + 0x1fc]
sete al
xor ecx, esp
call fcn.101c1860
add esp, 0x200
ret 4