Function at 0x406630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x45d074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x434e4c]
movzx edx, byte [0x434e54]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x7b], eax
mov dword [ebp - 0x77], eax
mov dword [ebp - 0x73], eax
mov dword [ebp - 0x6f], eax
mov dword [ebp - 0x6b], eax
mov word [ebp - 0x67], ax
mov byte [ebp - 0x65], al
mov eax, dword [0x434e40]
push ebx
mov dword [ebp - 0x64], eax
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [0x434e50]
mov dword [ebp - 0x5b], eax
mov dword [ebp - 0x57], eax
mov dword [ebp - 0x53], eax
mov dword [ebp - 0x4f], eax
mov dword [ebp - 0x4b], eax
mov word [ebp - 0x47], ax
mov byte [ebp - 0x45], al
mov eax, dword [0x434e34]
mov dword [ebp - 0x80], ecx
mov ecx, dword [0x434e44]
mov byte [ebp - 0x7c], dl
movzx edx, byte [0x434e48]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x60], ecx
mov ecx, dword [0x434e38]
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x104
mov byte [ebp - 0x5c], dl
movzx edx, byte [0x434e3c]
lea eax, [ebp - 0x288]
mov dword [ebp - 0x40], ecx
mov ecx, dword [esi]
push eax
xor ebx, ebx
push ecx
mov dword [ebp - 0x290], esi
mov byte [ebp - 0x3c], dl
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x2ac], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406bf2
push edi
mov edi, dword [sym.imp.MSVCR100.dll_strcpy_s]
lea edx, [ebp - 0x288]
push edx
add esi, 0x88
push 0x104
push esi
call edi
push 0x5c
push esi
call dword [sym.imp.MSVCR100.dll__mbsrchr]
add esp, 0x14
cmp eax, ebx
jne 0x40676a
push 0x4336b1
push 0x104
push esi
call edi
add esp, 0xc
jmp 0x40676c
mov byte [eax], bl
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x288]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x406bf1
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x294], edi
cmp edi, ebx
je 0x406bf1
push edi
push esi
push ebx
lea edx, [ebp - 0x288]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4067bc
push edi
jmp 0x406be8
mov edx, dword [ebp - 0x294]
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x298]
push ecx
push 0x434e30
push edx
call sub.VERSION.dll_VerQueryValueA
mov ebx, eax
cmp ebx, 1
jne 0x40681d
mov eax, dword [ebp - 0x298]
movzx ecx, word [eax + 0xe]
movzx edx, word [eax + 0xa]
movzx esi, word [eax + 8]
mov edi, dword [ebp - 0x290]
mov word [edi + 0x30c], cx
movzx eax, word [eax + 0xc]
push eax
push ecx
push esi
push edx
push str._u._u._u._u
push 0x40
add edi, 8
push edi
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x1c
xor eax, eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2a4], eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406830
sub ecx, esi
je 0x406901
lea esi, [ebp - 0x84]
test eax, eax
jne 0x40689f
push esi
push str.StringFileInfo_sProductVersion
lea edx, [ebp - 0x184]
push 0x100
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x184]
push edx
push eax
call sub.VERSION.dll_VerQueryValueA
add esi, 0x20
mov ecx, esi
lea edi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406890
sub ecx, edi
jne 0x406845
test eax, eax
je 0x406901
mov esi, dword [ebp - 0x290]
push 0x40
add esi, 0x48
push 0
push esi
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x2a4]
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068c0
sub eax, edx
cmp eax, 0x3f
jae 0x4068ec
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068d3
sub eax, edx
push eax
push edi
push 0x40
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
jmp 0x406941
mov eax, 0x3f
push eax
push edi
push 0x40
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
jmp 0x406941
cmp ebx, 1
jne 0x406941
mov eax, dword [ebp - 0x298]
movzx ecx, word [eax + 0x16]
movzx edx, word [eax + 0x12]
movzx esi, word [eax + 0x10]
mov edi, dword [ebp - 0x290]
mov word [edi + 0x30c], cx
movzx eax, word [eax + 0x14]
push eax
push ecx
push esi
push edx
push str._u._u._u._u
push 0x40
add edi, 0x48
push edi
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x1c
xor eax, eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x29c], eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406952
sub ecx, esi
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf_s]
je 0x406a1e
lea esi, [ebp - 0x84]
lea ecx, [ecx]
test eax, eax
jne 0x4069c3
push esi
push str.StringFileInfo_sProductName
lea edx, [ebp - 0x184]
push 0x100
push edx
call ebx
add esp, 0x10
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x29c]
push ecx
lea edx, [ebp - 0x184]
push edx
push eax
call sub.VERSION.dll_VerQueryValueA
add esi, 0x20
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4069b4
sub ecx, edi
jne 0x406970
test eax, eax
je 0x406a1e
mov esi, dword [ebp - 0x290]
push 0x40
add esi, 0x18c
push 0
push esi
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x29c]
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4069e7
sub eax, edx
cmp eax, 0x3f
jae 0x406a0b
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406a00
sub eax, edx
jmp 0x406a10
mov eax, 0x3f
push eax
push edi
push 0x40
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2a0], eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406a30
sub ecx, esi
je 0x406b01
lea esi, [ebp - 0x84]
test eax, eax
jne 0x406a9f
push esi
push str.StringFileInfo_sFileDescription
lea ecx, [ebp - 0x184]
push 0x100
push ecx
call ebx
add esp, 0x10
lea edx, [ebp - 0x2b4]
push edx
mov edx, dword [ebp - 0x294]
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x184]
push ecx
push edx
call sub.VERSION.dll_VerQueryValueA
add esi, 0x20
mov ecx, esi
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406a90
sub ecx, edi
jne 0x406a45
test eax, eax
je 0x406b01
mov esi, dword [ebp - 0x290]
push 0x100
add esi, 0x1cc
push 0
push esi
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x2a0]
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ac6
sub eax, edx
cmp eax, 0xff
jae 0x406aeb
mov eax, edi
lea edx, [eax + 1]
jmp 0x406ae0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ae0
sub eax, edx
jmp 0x406af0
mov eax, 0xff
push eax
push edi
push 0x100
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x2a8], eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406b12
sub ecx, esi
je 0x406bd4
lea esi, [ebp - 0x84]
test eax, eax
jne 0x406b7f
push esi
push str.StringFileInfo_sBuild_No
lea eax, [ebp - 0x184]
push 0x100
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x2bc]
push ecx
mov ecx, dword [ebp - 0x294]
lea edx, [ebp - 0x2a8]
push edx
lea eax, [ebp - 0x184]
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
add esi, 0x20
mov ecx, esi
lea edi, [ecx + 1]
jmp 0x406b70
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406b70
sub ecx, edi
jne 0x406b27
test eax, eax
je 0x406bd4
mov esi, dword [ebp - 0x290]
push 0x40
add esi, 0x2cc
push 0
push esi
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x2a8]
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ba3
sub eax, edx
cmp eax, 0x3f
jae 0x406bc1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406bb6
sub eax, edx
jmp 0x406bc6
mov eax, 0x3f
push eax
push edi
push 0x40
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
add esp, 0x10
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x294]
mov dword [edx + 4], 1
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040981a
mov esp, ebp
pop ebp
ret