Function at 0x4a5c70
Capabilities:
Get file version info
Query environment variable

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x52ae9b
push eax
mov eax, 0x6020
mov dword fs:[0], esp
call fcn.004c79b0
push ebx
push ebp
mov ebp, dword [esp + 0x6038]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4a5e23
jle 0x4a5ebd
cmp eax, 2
jg 0x4a5ebd
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x6044]
push 0x1000
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x4034]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4a5cf0
lea esi, [esp + 0x4030]
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x4a5d38
cmp eax, 0x1fff
ja 0x4a5d38
lea edx, [esp + 0x30]
push edx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a5ec2
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
push 0x561820
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4a5d3f
xor eax, eax
jmp 0x4a5ec2
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
cmp edx, 1
jne 0x4a5d50
mov ecx, dword [eax + 8]
jmp 0x4a5d53
mov ecx, dword [eax + 0x10]
cmp edx, 1
jne 0x4a5d5d
mov eax, dword [eax + 0xc]
jmp 0x4a5d60
mov eax, dword [eax + 0x14]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, ecx
and eax, 0xffff
shr ecx, 0x10
push eax
push ecx
lea ecx, [esp + 0x2040]
push 0x567ac4
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x2048]
lea esi, [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x1c
mov ecx, esi
mov edi, eax
call fcn.00411cf0
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
cmp eax, ebx
je 0x4a5dd0
mov al, byte [eax - 1]
cmp al, bl
je 0x4a5dd0
cmp al, 0xff
je 0x4a5dd0
cmp edi, ebx
jne 0x4a5df7
push 1
mov ecx, esi
call fcn.0040d630
jmp 0x4a5ebd
cmp edi, ebx
jne 0x4a5de2
push 1
mov ecx, esi
call fcn.0040d630
jmp 0x4a5ebd
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x4a5dee
cmp eax, edi
jae 0x4a5dff
push 1
mov ecx, esi
call fcn.0040d630
push edi
mov ecx, esi
call fcn.00411d00
mov ecx, dword [esi + 4]
lea eax, [esp + 0x2030]
push edi
push eax
push ecx
call fcn.0040db00
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
add esp, 0xc
mov word [edx + edi*2], bx
jmp 0x4a5ebd
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x6044]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x6040], ebx
call fcn.004a2520
add esp, 8
test eax, eax
jne 0x4a5e83
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4a5e7f
mov al, byte [ecx - 1]
cmp al, bl
je 0x4a5e73
cmp al, 0xff
je 0x4a5e73
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x4a5ec2
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x4a5ec2
mov eax, dword [0x535110]
lea ecx, [esp + 0x18]
push eax
push ebx
push ecx
lea ecx, [ebp + 0xc]
call fcn.0040fca0
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4a5ebd
mov al, byte [ecx - 1]
cmp al, bl
je 0x4a5eb1
cmp al, 0xff
je 0x4a5eb1
dec al
mov byte [ecx - 1], al
jmp 0x4a5ebd
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x6030]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x602c
ret 8