Function at 0x41cce0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x423778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov al, byte [esp + 3]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2c], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov edi, dword [esp + 0xb8]
lea ecx, [esp + 0x3c]
push ecx
push edi
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x44], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jbe 0x41ce8b
push ebp
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ebp, eax
mov dword [esp + 0x18], ebp
push ebp
push esi
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41ce7c
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push 0x42aff0
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41ce7c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41ce7c
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
and ecx, 0xffff
mov eax, edx
shr esi, 0x10
push ecx
and eax, 0xffff
push esi
push eax
shr edx, 0x10
push edx
lea ecx, [esp + 0x54]
push str._d._d._d._d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov dl, byte [esp + 0x2b]
add esp, 0x18
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
push ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41ce2f
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], bl
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x20]
mov byte [esp + 0xb0], 1
mov eax, dword [edx]
push eax
push ebx
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [esp + 0xb0], bl
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41ce7c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41ce73
cmp al, 0xff
je 0x41ce73
dec al
mov byte [ecx], al
jmp 0x41ce7c
push ecx
call fcn.00421c18
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop ebp
mov esi, dword [esp + 0xb4]
mov al, byte [esp + 0x2c]
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x41cedc
mov al, byte [ecx - 1]
cmp al, bl
je 0x41ced2
cmp al, 0xff
je 0x41ced2
dec al
mov byte [ecx - 1], al
jmp 0x41cedc
dec ecx
push ecx
call fcn.00421c18
add esp, 4
mov ecx, dword [esp + 0xa4]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret 8