Function at 0x4570a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4fd228]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00464230
mov ebx, eax
test ebx, ebx
je 0x4570d0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x4570d5
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004b55f0
cmp eax, 1
je 0x4570f3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x457189
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 0x45711d
mov edi, dword [esi + 0xc]
jmp 0x45711f
mov edi, esi
cmp byte [edi + 0x17], 1
lea ebx, [esi + 0xc]
jne 0x45713a
test byte [edi + 0x15], 8
je 0x457135
mov ecx, edi
call fcn.004014f0
add edi, 0xc
jmp 0x45713f
mov edi, 0x4ffb08
lea eax, [ebp*2]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
pop ebp
jne 0x457153
mov edi, dword [ebx]
jmp 0x457155
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45716d
test byte [edi + 0x15], 8
je 0x457168
mov ecx, edi
call fcn.004014f0
add edi, 0xc
jmp 0x457172
mov edi, 0x4ffb08
cmp dword [edi], 2
jae 0x4571cb
push 0
push 1
mov ecx, esi
call fcn.00401690
xor ecx, ecx
mov word [eax], cx
jmp 0x4571cb
push 0
push 1
call fcn.00401690
xor ecx, ecx
lea ebx, [esi + 0xc]
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x4571a3
mov edi, dword [ebx]
jmp 0x4571a5
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4571c0
test byte [edi + 0x15], 8
je 0x4571b8
mov ecx, edi
call fcn.004014f0
add edi, 0xc
lea ebx, [esi + 0xc]
jmp 0x4571c5
mov edi, 0x4ffb08
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x4571d3
mov esi, dword [ebx]
cmp byte [esi + 0x17], 2
jne 0x4571f3
cmp dword [0x4fe6fc], 0
je 0x4571f3
push ecx
mov ecx, 0x4fe6f0
call fcn.00406b50
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 0x458080
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004cd440
push esi
mov esi, dword [0x4fd228]
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 0x458146
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004b55f0
test eax, eax
jne 0x4580d7
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 0x458104
push eax
push 1
mov ecx, esi
call fcn.00401690
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x45810d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x458132
cmp dword [0x4fe6fc], 0
je 0x458132
push ecx
mov ecx, 0x4fe6f0
call fcn.00406b50
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, 0x4cfc30
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004b55f0
pop edi
pop esi
add esp, 0x10000
ret 4