Function at 0x10061c3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
je 0x10065e6
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10065e6
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x10065e6
push 2
push edi
call esi
test eax, eax
jne 0x10065e6
push 0x1001920
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp + 8], ebx
jne 0x1006238
mov dword [ebp - 0x1c], 0x80004005
jmp 0x10065e1
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
push edi
push 0x1003514
push ebx
call esi
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x10065c9
lea ecx, [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10065bd
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call edi
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push dword [eax*4 + 0x100c4ec]
movzx eax, word [ebp - 0x10]
push dword [eax*4 + 0x100c520]
push 0x10034e8
push ebx
call esi
add esp, 0x24
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call edi
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push dword [eax*4 + 0x100c4ec]
movzx eax, word [ebp - 0x10]
push dword [eax*4 + 0x100c520]
push 0x10034b8
push ebx
call esi
add esp, 0x24
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
call edi
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push dword [eax*4 + 0x100c4ec]
movzx eax, word [ebp - 0x10]
push dword [eax*4 + 0x100c520]
push 0x1003488
push ebx
call esi
add esp, 0x24
test byte [ebp - 0x58], 0x20
mov ebx, 0x1002820
mov eax, 0x1003474
jne 0x1006366
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
test byte [ebp - 0x57], 8
pop ecx
pop ecx
mov eax, 0x100345c
jne 0x1006383
mov eax, ebx
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x58], 0x10
pop ecx
pop ecx
mov eax, 0x1003444
jne 0x10063a2
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x57], 0x40
pop ecx
pop ecx
mov eax, 0x100342c
jne 0x10063bb
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x58], 2
pop ecx
pop ecx
mov eax, 0x100341c
jne 0x10063d4
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x58], 0x80
pop ecx
pop ecx
mov eax, 0x100340c
jne 0x10063ed
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x57], 0x10
pop ecx
pop ecx
mov eax, 0x10033f8
jne 0x1006406
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x58], 1
pop ecx
pop ecx
mov eax, 0x10033e4
jne 0x100641f
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x57], 4
pop ecx
pop ecx
mov eax, 0x10033c4
jne 0x1006438
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x57], 2
pop ecx
pop ecx
mov eax, 0x10033a8
jne 0x1006451
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x58], 4
pop ecx
pop ecx
mov eax, 0x1003398
jne 0x100646a
mov eax, ebx
push eax
lea eax, [ebp - 0x260]
push eax
call edi
test byte [ebp - 0x57], 1
pop ecx
pop ecx
je 0x1006481
mov ebx, 0x1003380
lea eax, [ebp - 0x260]
push ebx
push eax
call edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x260]
push eax
push 0x1003370
push edi
call esi
push dword [ebp - 0x3c]
push 0x1003354
push edi
call esi
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0x1003340
push edi
call esi
push dword [ebp - 0x30]
push 0x100332c
push edi
call esi
add esp, 0x3c
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10065bd
push edi
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
jne 0x10064f7
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x10065bd
push ebx
push edi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
push 0x100cbf8
push 0x10032f8
push ebx
call sub.VERSION.dll_VerQueryValueW
xor ebx, ebx
test dword [ebp - 4], 0xfffffffc
jbe 0x10065bd
mov eax, dword [0x100cbf8]
lea eax, [eax + ebx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x10032e8
push dword [ebp + 8]
call esi
add esp, 0x10
xor edi, edi
mov eax, dword [0x100cbf8]
push dword [edi + 0x100c448]
movzx ecx, word [eax + ebx*4 + 2]
movzx eax, word [eax + ebx*4]
push ecx
push eax
lea eax, [ebp - 0x260]
push 0x10032b0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 4]
test eax, eax
je 0x10065a9
push dword [ebp + 0xc]
push dword [edi + 0x100c448]
push 0x10032a8
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
add esp, 0x10
add edi, 4
cmp edi, 0x30
jb 0x1006547
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x1006527
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
cmp dword [ebp - 0x18], 0
pop ecx
je 0x10065e1
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x10065eb
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 8