Function at 0x456570
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4fc2a8]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004633d0
mov ebx, eax
test ebx, ebx
je 0x4565a0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x4565a5
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004b4bf0
cmp eax, 1
je 0x4565c3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x456659
push ebp
push edi
push 0
push 1
call fcn.00401690
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x4565ed
mov edi, dword [esi + 0xc]
jmp 0x4565ef
mov edi, esi
cmp byte [edi + 0x17], 1
lea ebx, [esi + 0xc]
jne 0x45660a
test byte [edi + 0x15], 8
je 0x456605
mov ecx, edi
call fcn.004014f0
add edi, 0xc
jmp 0x45660f
mov edi, 0x4feb88
lea eax, [ebp*2]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
pop ebp
jne 0x456623
mov edi, dword [ebx]
jmp 0x456625
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45663d
test byte [edi + 0x15], 8
je 0x456638
mov ecx, edi
call fcn.004014f0
add edi, 0xc
jmp 0x456642
mov edi, 0x4feb88
cmp dword [edi], 2
jae 0x45669b
push 0
push 1
mov ecx, esi
call fcn.00401690
xor ecx, ecx
mov word [eax], cx
jmp 0x45669b
push 0
push 1
call fcn.00401690
xor ecx, ecx
lea ebx, [esi + 0xc]
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x456673
mov edi, dword [ebx]
jmp 0x456675
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x456690
test byte [edi + 0x15], 8
je 0x456688
mov ecx, edi
call fcn.004014f0
add edi, 0xc
lea ebx, [esi + 0xc]
jmp 0x456695
mov edi, 0x4feb88
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x4566a3
mov esi, dword [ebx]
cmp byte [esi + 0x17], 2
jne 0x4566c3
cmp dword [0x4fd77c], 0
je 0x4566c3
push ecx
mov ecx, 0x4fd770
call fcn.004068a0
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x457550
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004cc6a0
push esi
mov esi, dword [0x4fc2a8]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x457616
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004b4bf0
test eax, eax
jne 0x4575a7
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401690
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4575d4
push eax
push 1
mov ecx, esi
call fcn.00401690
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x4575dd
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x457602
cmp dword [0x4fd77c], 0
je 0x457602
push ecx
mov ecx, 0x4fd770
call fcn.004068a0
pop edi
pop esi
add esp, 0x10000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x10000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4cec30
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004b4bf0
pop edi
pop esi
add esp, 0x10000
ret 4