Function at 0x46d440
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 0x46d681
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 0x4706c0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46d532
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 0x46d5a6
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 0x46f57c
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0046d2e0
test eax, eax
jne 0x46d5c4
jmp 0x46d590
movzx ecx, word [eax + str.040904E4]
mov word [esp + eax + 0x38], cx
add eax, 2
test cx, cx
jne 0x46d590
jmp 0x46d5c4
xor eax, eax
jmp 0x46d5b0
movzx ecx, word [eax + str.040904E4]
mov word [esp + eax + 0x38], cx
add eax, 2
test cx, cx
jne 0x46d5b0
push ebx
push 0x477780
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.0046d2e0
push ebp
push 0x477798
lea edx, [esp + 0x40]
push edx
push esi
call fcn.0046d2e0
mov eax, dword [esp + 0x30]
push eax
push 0x4777b8
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.0046d2e0
mov edx, dword [esp + 0x14]
push edx
push 0x4777d0
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0046d2e0
mov ecx, dword [esp + 0x18]
push ecx
push 0x4777f0
lea edx, [esp + 0x40]
push edx
push esi
call fcn.0046d2e0
mov eax, dword [esp + 0x1c]
push eax
push str.InternalName
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.0046d2e0
mov edx, dword [esp + 0x24]
push edx
push 0x477824
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0046d2e0
mov ecx, dword [esp + 0x2c]
push ecx
push str.OriginalFileName
lea edx, [esp + 0x40]
push edx
push esi
call fcn.0046d2e0
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