Function at 0x4796b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x250
mov ecx, dword [esp + 0x254]
push esi
push edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
xor esi, esi
push ecx
mov dword [esp + 0x28], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [esp + 8], eax
jbe 0x4798f1
mov word [edi + 0x418], si
lea ecx, [edi + 0x418]
mov dword [esp + 0x28], ecx
lea ecx, [edi + 0x618]
mov dword [esp + 0xc], ecx
mov word [ecx], si
lea ecx, [edi + 0x818]
mov dword [esp + 0x10], ecx
mov word [ecx], si
lea ecx, [edi + 0xa18]
mov dword [esp + 0x14], ecx
mov word [ecx], si
push ebx
lea ecx, [edi + 0xc18]
push ebp
mov dword [esp + 0x24], ecx
mov word [ecx], si
lea ecx, [edi + 0xe18]
lea ebx, [edi + 0x18]
lea ebp, [edi + 0x218]
push eax
mov word [ebx], si
mov word [ebp], si
mov dword [esp + 0x30], ecx
mov word [ecx], si
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x264]
push esi
push edx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
push 0x47e1f4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4797a2
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov edx, dword [eax + 8]
mov dword [edi], edx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov edx, dword [eax + 0x10]
mov dword [edi + 8], edx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov edx, dword [eax + 0x28]
mov dword [edi + 0x14], edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x479816
mov eax, dword [esp + 0x20]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str._4.4X_4.4X
lea ecx, [esp + 0x44]
push 0x14
push ecx
call sub.msvcrt.dll__snwprintf
add esp, 0x14
lea edx, [esp + 0x60]
push edx
push 0x47c518
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00479550
test eax, eax
jne 0x479834
jmp 0x479800
movzx ecx, word [eax + str.040904E4]
mov word [esp + eax + 0x38], cx
add eax, 2
test cx, cx
jne 0x479800
jmp 0x479834
xor eax, eax
jmp 0x479820
movzx ecx, word [eax + str.040904E4]
mov word [esp + eax + 0x38], cx
add eax, 2
test cx, cx
jne 0x479820
push ebx
push 0x47f824
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00479550
push ebp
push 0x485a38
lea edx, [esp + 0x40]
push edx
push esi
call fcn.00479550
mov eax, dword [esp + 0x30]
push eax
push 0x485a58
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00479550
mov edx, dword [esp + 0x14]
push edx
push 0x485a70
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00479550
mov ecx, dword [esp + 0x18]
push ecx
push 0x485a90
lea edx, [esp + 0x40]
push edx
push esi
call fcn.00479550
mov eax, dword [esp + 0x1c]
push eax
push 0x485aa8
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00479550
mov edx, dword [esp + 0x24]
push edx
push 0x485ac4
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00479550
mov ecx, dword [esp + 0x2c]
push ecx
push str.OriginalFileName
lea edx, [esp + 0x40]
push edx
push esi
call fcn.00479550
push esi
mov edi, 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x250
ret 4
pop edi
mov eax, esi
pop esi
add esp, 0x250
ret 4