Function at 0x10062070
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079e48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x34], edi
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
push 7
push 0x1007e5e8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1004dce6
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
jae 0x100620d9
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x44]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
jne 0x10062168
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0x2c]
jae 0x100620f5
lea edx, [ebp - 0x2c]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10062110
sub eax, ebx
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.1004dce6
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x1006213e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100660ce
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x20], ebx
jb 0x100622f1
mov eax, dword [ebp + 0xc]
push eax
call fcn.100660ce
add esp, 4
jmp 0x100622f1
push ebx
call fcn.1006555b
mov edi, eax
add esp, 4
test edi, edi
jne 0x100621f8
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0x2c]
jae 0x10062187
lea edx, [ebp - 0x2c]
mov ebx, 7
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100621a0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.1004dce6
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x100621ce
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100660ce
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp + 0x20], edi
jb 0x100622f1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100660ce
add esp, 4
jmp 0x100622f1
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x10062204
lea eax, [ebp + 0xc]
push edi
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10062261
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.1004e600
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x10062233
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100660ce
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp + 0x20], edi
jb 0x100622f1
mov edx, dword [ebp + 0xc]
push edx
call fcn.100660ce
add esp, 4
jmp 0x100622f1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x10082560
push edi
mov dword [ebp - 0x30], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1006228a
push edi
call fcn.100660ce
add esp, 4
jmp 0x100622d6
cmp dword [ebp - 0x3c], 0
jne 0x10062296
lea eax, [ebp - 0x2c]
push eax
jmp 0x100622da
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + 8]
movzx edx, word [eax + 0xe]
movzx ebx, word [eax + 0xa]
movzx eax, word [eax + 0xc]
push edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], eax
call fcn.100660ce
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
push ecx
push edx
push eax
push ebx
lea ecx, [ebp - 0x2c]
push str._d._d._d._d
push ecx
call fcn.1004fe20
add esp, 0x1c
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.1004e600
lea ecx, [ebp - 0x2c]
call fcn.1004e5d0
lea ecx, [ebp + 0xc]
call fcn.1004e5d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret