Function at 0x10037d2
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1006004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x230], 0
and dword [ebp - 0x234], 0
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x1003855
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003821
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a6f
test byte [eax + 0x1c], 1
je 0x1003a6f
push ecx
push 0x10013ec
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x1003a6f
push ebx
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
mov dword [ebp - 0x21c], ebx
test ebx, ebx
jne 0x100388f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a59
test byte [eax + 0x1c], 1
je 0x1003a59
push 0x10013ec
push 0x26
jmp 0x1003a1a
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10038e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10038b1
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003a59
test byte [eax + 0x1c], 1
je 0x1003a59
push ecx
push 0x10013ec
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001bcb
jmp 0x1003a59
xor eax, eax
mov word [ebp - 0x22c], ax
mov word [ebp - 0x22a], ax
mov eax, 0x409
mov ecx, eax
mov word [ebp - 0x228], cx
mov ecx, 0x4b0
mov word [ebp - 0x226], cx
mov ecx, eax
mov word [ebp - 0x220], ax
xor eax, eax
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22c]
push eax
mov word [ebp - 0x224], cx
push 0x100145c
mov ecx, 0x4e4
push ebx
mov word [ebp - 0x222], cx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100395f
mov word [ebp - 0x22c], ax
mov word [ebp - 0x22a], ax
mov eax, dword [section..data]
xor esi, esi
mov edi, section..data
mov ebx, 0x10013ec
movzx ecx, word [ebp + esi*4 - 0x22c]
test cx, cx
jne 0x1003987
cmp word [ebp + esi*4 - 0x22a], cx
je 0x10039fe
movzx eax, word [ebp + esi*4 - 0x22a]
push eax
movzx eax, cx
push eax
push 0x1001410
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.0100242e
add esp, 0x14
test eax, eax
jl 0x10039dc
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov eax, dword [section..data]
jne 0x1003a08
jmp 0x10039fe
mov eax, dword [section..data]
cmp eax, edi
je 0x10039fe
test byte [eax + 0x1c], 2
je 0x10039fe
push ebx
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ba5
mov eax, dword [section..data]
inc esi
cmp esi, 4
jb 0x1003970
cmp esi, 4
jne 0x1003a27
cmp eax, edi
je 0x1003a59
test byte [eax + 0x1c], 4
je 0x1003a59
push ebx
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ba5
jmp 0x1003a59
push 5
pop ecx
push 9
push dword [ebp - 0x234]
mov esi, 0x10013fc
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
push 9
lea eax, [ebp - 0x18]
push eax
xor esi, esi
inc esi
push esi
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1003a59
mov dword [ebp - 0x230], esi
cmp dword [ebp - 0x21c], 0
pop ebx
je 0x1003a6f
push dword [ebp - 0x21c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x230]
pop edi
xor ecx, ebp
pop esi
call fcn.01002d9e
leave
ret 4