Function at 0x410a5e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x43674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x648], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x660], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x654], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x64c], eax
xor eax, eax
mov edi, 0x208
push edi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
test ebx, ebx
je 0x410add
xor eax, eax
cmp ax, word [ebx]
je 0x410add
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor ebx, ebx
jmp 0x410af3
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x640], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x634], ebx
mov byte [ebp - 0x629], 0
mov dword [ebp - 0x650], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x630], eax
cmp eax, ebx
jne 0x410b50
xor al, al
jmp 0x410e57
inc eax
push eax
call fcn.0042129f
pop ecx
mov dword [ebp - 0x638], eax
cmp eax, ebx
je 0x410b49
mov eax, dword [ebp - 0x630]
inc eax
push eax
push ebx
push dword [ebp - 0x638]
call sub.MSVCR100.dll_memset
add esp, 0xc
push dword [ebp - 0x638]
lea eax, [ebp - 0x41c]
push dword [ebp - 0x630]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410e45
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x644]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x638]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410e45
test dword [ebp - 0x640], 0xfffffffc
mov dword [ebp - 0x630], ebx
jbe 0x410e45
mov eax, dword [ebp - 0x644]
mov ecx, dword [ebp - 0x630]
lea eax, [eax + ecx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push str.FileVersion
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x628]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x18
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x638]
mov dword [ebp - 0x634], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410c3b
cmp dword [ebp - 0x63c], ebx
ja 0x410c57
mov eax, dword [ebp - 0x640]
inc dword [ebp - 0x630]
shr eax, 2
cmp dword [ebp - 0x630], eax
jb 0x410bd6
jmp 0x410e45
xor eax, eax
push edi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x63c], esi
ja 0x410c7f
mov esi, dword [ebp - 0x63c]
push esi
push dword [ebp - 0x634]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x210]
mov dword [ebp - 0x634], eax
cmp word [ebp - 0x210], bx
je 0x410ccd
push 0x2c
pop ecx
cmp cx, word [eax]
jne 0x410cbf
push 0x2e
pop ecx
mov word [eax], cx
mov eax, dword [ebp - 0x634]
add eax, 2
mov dword [ebp - 0x634], eax
cmp word [eax], bx
jne 0x410cab
mov edi, dword [sym.imp.MSVCR100.dll_wcschr]
lea eax, [ebp - 0x210]
push 0x2e
push eax
mov byte [ebp - 0x629], 0
call edi
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x410e45
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR100.dll__wtol]
push 0x2e
mov dword [ebp - 0x658], eax
pop eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call edi
add esp, 0xc
cmp eax, ebx
je 0x410e45
movzx ecx, word [eax]
cmp ecx, 0x30
jb 0x410d31
cmp ecx, 0x39
jbe 0x410d36
add eax, 2
jmp 0x410d24
mov dword [ebp - 0x630], eax
cmp word [eax], bx
je 0x410e45
cmp word [eax], 0x30
mov esi, eax
jb 0x410d5c
cmp word [esi], 0x39
ja 0x410d5c
add esi, 2
cmp word [esi], 0x30
jae 0x410d4d
movzx ecx, word [esi]
cmp cx, bx
je 0x410e45
mov ebx, ecx
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.MSVCR100.dll__wtol]
push 0x2e
push dword [ebp - 0x630]
mov dword [ebp - 0x65c], eax
mov word [esi], bx
call edi
add esp, 0xc
test eax, eax
je 0x410e45
movzx ecx, word [eax]
test cx, cx
je 0x410e45
cmp cx, 0x30
jb 0x410dac
cmp cx, 0x39
jbe 0x410db7
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x410da0
cmp word [eax], 0
je 0x410e45
cmp word [eax], 0x30
mov esi, eax
jb 0x410dd8
cmp word [esi], 0x39
ja 0x410dd8
add esi, 2
cmp word [esi], 0x30
jae 0x410dc9
mov edi, dword [sym.imp.MSVCR100.dll__wtol]
xor ecx, ecx
push eax
mov word [esi], cx
call edi
mov ebx, eax
lea eax, [esi + 2]
pop ecx
test eax, eax
je 0x410dfc
cmp word [eax], 0
je 0x410dfc
push eax
call edi
pop ecx
jmp 0x410e02
mov eax, dword [ebp - 0x650]
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x410e14
mov edx, dword [ebp - 0x658]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x660]
test ecx, ecx
je 0x410e26
mov edx, dword [ebp - 0x65c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x654]
test ecx, ecx
je 0x410e32
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x64c]
test ecx, ecx
je 0x410e3e
mov dword [ecx], eax
mov byte [ebp - 0x629], 1
push dword [ebp - 0x638]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov al, byte [ebp - 0x629]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421350
leave
ret 0x14