Function at 0x4247e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440451
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x459310]
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.00419470
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 4], 1
push ecx
mov byte [ebp - 4], 2
call fcn.00423130
add esp, 8
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov byte [ebp - 4], 3
jne 0x424852
lea ecx, [ebp - 0x2c]
call fcn.004195a0
mov esi, eax
cmp esi, ebx
je 0x42486d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x424857
sub eax, edx
sar eax, 1
add eax, 1
cmp eax, ebx
ja 0x42487e
push 0x44fc14
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.0040d310
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
mov byte [ebp - 4], 4
je 0x4248a2
mov edx, dword [ebp - 0x38]
sub edx, ecx
sar edx, 1
jne 0x4248b0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x3c]
jmp 0x4248b0
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
cmp ax, bx
jne 0x4248b0
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4248d1
mov ecx, dword [ebp - 0x38]
sub ecx, eax
sar ecx, 1
jne 0x4248da
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 0x4248f8
push 0x44fc14
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], ebx
call sub.MSVCR80.dll__CxxThrowException
push edi
call fcn.0043bb6a
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x30], esi
jne 0x42491b
push 0x44fc14
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 0x42492b
mov ecx, dword [ebp - 0x38]
sub ecx, eax
sar ecx, 1
jne 0x424934
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 0x424952
push 0x44fc14
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 0x4443f4
push esi
mov dword [ebp - 0x28], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x42497d
push 0x44fc14
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.0040d240
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00419480
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.0041b950
mov esi, dword [ebp - 0x24]
add esp, 0x1c
lea edx, [ebp - 0x1c]
push edx
mov ecx, esi
call fcn.00419d00
or dword [ebp - 0x20], 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00419480
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