Function at 0x1008d9c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc181
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x100e87b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
call fcn.1007ecd0
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 4], 1
push ecx
mov byte [ebp - 4], 2
call fcn.1008d350
add esp, 8
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov byte [ebp - 4], 3
jne 0x1008da32
lea ecx, [ebp - 0x2c]
call fcn.1007ee00
mov esi, eax
cmp esi, ebx
je 0x1008da4d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1008da37
sub eax, edx
sar eax, 1
add eax, 1
cmp eax, ebx
ja 0x1008da5e
push 0x100d5204
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], ebx
call sub.MSVCR80.dll__CxxThrowException
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], ebx
call fcn.10021bf0
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
mov byte [ebp - 4], 4
je 0x1008da82
mov edx, dword [ebp - 0x38]
sub edx, ecx
sar edx, 1
jne 0x1008da90
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x3c]
jmp 0x1008da90
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
cmp ax, bx
jne 0x1008da90
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x1008dab1
mov ecx, dword [ebp - 0x38]
sub ecx, eax
sar ecx, 1
jne 0x1008daba
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x3c]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
ja 0x1008dad8
push 0x100d5204
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], ebx
call sub.MSVCR80.dll__CxxThrowException
push edi
call fcn.100af856
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x30], esi
jne 0x1008dafb
push 0x100d5204
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], ebx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x1008db0b
mov ecx, dword [ebp - 0x38]
sub ecx, eax
sar ecx, 1
jne 0x1008db14
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x3c]
push esi
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1008db32
push 0x100d5204
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], ebx
call sub.MSVCR80.dll__CxxThrowException
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0x100c1584
push esi
mov dword [ebp - 0x28], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1008db5d
push 0x100d5204
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], ebx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp - 0x28]
mov cx, word [eax + 0x16]
mov dx, word [eax + 0x14]
mov di, word [eax + 0x12]
mov bx, word [eax + 0x10]
mov word [ebp - 0x14], cx
lea ecx, [ebp - 0x40]
mov word [ebp - 0x12], dx
mov byte [ebp - 4], 3
call fcn.1001fec0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1007ece0
push esi
mov dword [ebp - 4], 1
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
movzx eax, word [ebp - 0x12]
movzx ecx, word [ebp - 0x14]
push eax
push ecx
movzx edx, bx
push edx
movzx eax, di
push eax
lea ecx, [ebp - 0x1c]
push str._d._d._d._d
push ecx
call fcn.10080e60
mov esi, dword [ebp - 0x24]
add esp, 0x1c
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.1007f490
or dword [ebp - 0x20], 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.1007ece0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret