Function at 0x61f8b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x61f8c1
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00407340
xor eax, eax
push ebp
push 0x61fb70
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2d], 0
cmp dword [ebp - 8], 0
jne 0x61f90a
mov dl, 1
mov eax, dword [0x4456c4]
call fcn.00454060
mov dword [ebp - 8], eax
mov byte [ebp - 0x2d], 1
jmp 0x61f912
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
push 0
lea eax, [ebp - 0x3c]
push eax
xor ecx, ecx
mov dx, 0x5c
mov eax, dword [ebp - 4]
call fcn.005ec058
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x61fb8c
call fcn.00408320
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
lea eax, [ebp - 0x44]
push eax
mov cl, 1
mov dx, 0x5c
mov eax, dword [ebp - 4]
call fcn.005ec058
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x61fbac
call fcn.00408320
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.0042463c
mov eax, dword [ebp - 0x48]
call fcn.004080c4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x61fabe
mov eax, dword [ebp - 0x10]
call fcn.004048fc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004080c4
push eax
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x61fbc0
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x61fab3
mov eax, dword [ebp - 0x14]
shr eax, 2
test eax, eax
jb 0x61fab3
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax*4 + 0x713800]
lea eax, [ebp - 0x4c]
mov edx, 0x61fc00
call fcn.00408320
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
movzx edx, word [edx + ecx*4]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 0x58], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
movzx edx, word [edx + ecx*4 + 2]
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], 0
lea edx, [ebp - 0x5c]
mov ecx, 1
call fcn.00424e78
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.004080c4
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x61fa9a
mov eax, dword [ebp - 0x1c]
push dword [eax*4 + 0x713800]
push 0x61fc44
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x24]
call fcn.0040811c
push dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004083a8
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xb
jne 0x61f9f9
inc dword [ebp - 0x18]
dec dword [ebp - 0x34]
jne 0x61f9f4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
call fcn.0040494c
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00452770
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp + 8]
call fcn.00422f98
cmp byte [ebp + 0xc], 0
jne 0x61fb2a
mov eax, dword [ebp - 0xc]
mov edx, 0x61fc54
call fcn.00408458
jne 0x61fb2a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x61fb2a
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x6c]
mov edx, 0x61fc80
mov eax, dword [ebp - 8]
call fcn.00452770
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov dx, 0x2e
call fcn.005ec058
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004080c4
push eax
call sub.user32.dll_CharUpperBuffW
cmp byte [ebp - 0x2d], 0
je 0x61fb38
mov eax, dword [ebp - 8]
call fcn.0040554c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61fb77
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.004072bc
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.004072bc
lea eax, [ebp - 0x2c]
call fcn.0040725c
lea eax, [ebp - 0xc]
call fcn.0040725c
ret