Function at 0x4477f0
Capabilities:
Get file version info
Impersonate file version information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c94e6
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404370
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0
jne 0x447850
xor al, al
jmp 0x447d39
push 4
lea ecx, [ebp - 0x414]
call fcn.00448570
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.004497e2
add esp, 4
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x414]
call fcn.004475b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x458]
push eax
push 0
lea ecx, [ebp - 0x414]
call fcn.00448590
push eax
call fcn.0044ba00
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.00448590
push eax
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404370
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4478f8
mov byte [ebp - 0x44d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.00447650
mov al, byte [ebp - 0x44d]
jmp 0x447d39
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0x4cdbc8
lea ecx, [ebp - 0x414]
call fcn.00448590
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x440], 0
jne 0x44795d
mov byte [ebp - 0x44e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.00447650
mov al, byte [ebp - 0x44e]
jmp 0x447d39
mov dword [ebp - 0x494], 0x4cdbfc
mov dword [ebp - 0x490], 0x4cdc10
mov dword [ebp - 0x48c], 0x4cdc28
mov dword [ebp - 0x488], 0x4cdc40
mov dword [ebp - 0x484], 0x4cdc5c
mov dword [ebp - 0x480], 0x4cdc7c
mov dword [ebp - 0x47c], 0x4cdca0
mov dword [ebp - 0x478], 0x4cdcb8
mov dword [ebp - 0x470], 8
mov dword [ebp - 0x45c], 0
jmp 0x4479d2
mov edx, dword [ebp - 0x45c]
add edx, 1
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
cmp eax, dword [ebp - 0x470]
jge 0x447aa5
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x41c], 0
push 0x200
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0044ba00
add esp, 0xc
mov edx, dword [ebp - 0x45c]
mov eax, dword [ebp + edx*4 - 0x494]
push eax
mov ecx, dword [ebp - 0x440]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x440]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
push 0x100
lea edx, [ebp - 0x210]
push edx
call fcn.004485d0
add esp, 0x1c
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x414]
call fcn.00448590
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x447aa0
cmp dword [ebp - 0x41c], 0
jbe 0x447aa0
cmp dword [ebp - 0x448], 0
je 0x447aa0
mov eax, dword [ebp - 0x41c]
push eax
push 0
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.0044ba00
add esp, 0xc
jmp 0x4479c3
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x444], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.0044ba00
add esp, 0xc
mov eax, dword [ebp - 0x440]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x440]
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04xFileDescription
push 0xffffffffffffffff
push 0x100
lea ecx, [ebp - 0x410]
push ecx
call fcn.004485d0
add esp, 0x18
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x414]
call fcn.00448590
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x447c25
mov edx, dword [ebp - 0x418]
push edx
push 0
mov eax, dword [ebp - 0x444]
push eax
call fcn.0044ba00
add esp, 0xc
mov ecx, dword [ebp - 0x418]
shr ecx, 1
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 5
jbe 0x447b66
mov dword [ebp - 0x460], 5
lea edx, [ebp - 0x43c]
push edx
call fcn.00447e20
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.00412940
cmp eax, dword [ebp - 0x460]
jbe 0x447bca
mov eax, dword [ebp - 0x460]
push eax
push 0
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.0040eb50
mov dword [ebp - 0x474], eax
mov edx, dword [ebp - 0x474]
push edx
lea ecx, [ebp - 0x43c]
call fcn.004044b0
lea ecx, [ebp - 0x4ac]
call fcn.00404440
lea ecx, [ebp - 0x43c]
call fcn.00412940
shl eax, 1
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
cmp eax, dword [ebp - 0x418]
ja 0x447c16
cmp dword [ebp - 0x444], 0
je 0x447c16
mov ecx, dword [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00404370
push eax
mov edx, dword [ebp - 0x444]
push edx
call fcn.0044af00
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.00404440
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 0x4cdd64
lea ecx, [ebp - 0x414]
call fcn.00448590
push eax
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x44c], 0
je 0x447c74
mov edx, dword [ebp - 0x420]
push edx
push 0
mov eax, dword [ebp - 0x44c]
push eax
call fcn.0044ba00
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
call fcn.00404370
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
jne 0x447cb8
mov byte [ebp - 0x44f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.00447650
mov al, byte [ebp - 0x44f]
jmp 0x447d39
mov ecx, dword [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x414]
call fcn.00448590
push eax
mov edx, dword [ebp - 0x440]
movzx eax, word [edx]
push eax
push 1
push 0x10
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
jne 0x447d0b
mov byte [ebp - 0x450], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.00447650
mov al, byte [ebp - 0x450]
jmp 0x447d39
push 0
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov byte [ebp - 0x451], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.00447650
mov al, byte [ebp - 0x451]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret