Function at 0x1012fc10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1012fe80
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], edx
lea edx, [ebp - 0x40]
push ecx
push eax
push edx
call fcn.10177030
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x1012fc75
mov ecx, dword [ebp - 0x3c]
mov dword [edi], 0
test ecx, ecx
je 0x1012fd6c
push 1
push ecx
jmp 0x1012fd63
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x2c], ecx
push ecx
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, dword [ebp + 8]
mov esi, eax
test eax, eax
je 0x1012fd24
js 0x1012fe04
push 1
push esi
call fcn.10098600
add esp, 8
test eax, eax
je 0x1012fe0b
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], eax
push eax
mov dword [ebp - 0x24], esi
push esi
push 0
push dword [ebp - 0x2c]
call sub.version.dll_GetFileVersionInfoA
test eax, eax
lea eax, [ebp - 0x40]
je 0x1012fd39
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x50], 0
push 1
push 0x10235460
push eax
call fcn.10177030
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1012fd7f
mov ecx, dword [ebp - 0x3c]
mov dword [edi], 0
test ecx, ecx
je 0x1012fd42
push 1
push ecx
push eax
call fcn.100985c0
add esp, 0xc
jmp 0x1012fd42
mov esi, dword [ebp - 0x20]
mov dword [edi], 0
mov eax, dword [ebp - 0x2c]
test esi, esi
mov byte [eax], 0
jne 0x1012fd60
jmp 0x1012fd6c
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push 1
push ebx
push dword [ebp - 0x28]
call fcn.100985c0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
test esi, esi
mov byte [eax], 0
je 0x1012fd6c
push 1
push esi
push eax
call fcn.100985c0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x50]
push eax
push ecx
mov dword [ebp - 0x48], edx
push edx
push dword [ebp - 0x28]
call sub.version.dll_VerQueryValueA
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x1012fddb
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
movzx edx, cx
shr ecx, 0x10
movzx esi, ax
shr eax, 0x10
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov eax, 1
mov dword [edi + 0x10], esi
jmp 0x1012fddd
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov dword [edi], eax
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
test ecx, ecx
mov byte [eax], 0
je 0x1012fd48
push 1
push ecx
push eax
call fcn.100985c0
add esp, 0xc
jmp 0x1012fd48
call fcn.10176df0
jmp 0x1012fe16
push esi
push 1
call fcn.101aefe0
add esp, 8
ud2