Function at 0x4573f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4fd218]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004645c0
mov ebx, eax
test ebx, ebx
je 0x457420
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x457425
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004b5b70
cmp eax, 1
je 0x457443
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x4574d9
push ebp
push edi
push 0
push 1
call fcn.004016b0
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x45746d
mov edi, dword [esi + 0xc]
jmp 0x45746f
mov edi, esi
cmp byte [edi + 0x17], 1
lea ebx, [esi + 0xc]
jne 0x45748a
test byte [edi + 0x15], 8
je 0x457485
mov ecx, edi
call fcn.00401510
add edi, 0xc
jmp 0x45748f
mov edi, 0x4ffaf8
lea eax, [ebp*2]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
pop ebp
jne 0x4574a3
mov edi, dword [ebx]
jmp 0x4574a5
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x4574bd
test byte [edi + 0x15], 8
je 0x4574b8
mov ecx, edi
call fcn.00401510
add edi, 0xc
jmp 0x4574c2
mov edi, 0x4ffaf8
cmp dword [edi], 2
jae 0x45751b
push 0
push 1
mov ecx, esi
call fcn.004016b0
xor ecx, ecx
mov word [eax], cx
jmp 0x45751b
push 0
push 1
call fcn.004016b0
xor ecx, ecx
lea ebx, [esi + 0xc]
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x4574f3
mov edi, dword [ebx]
jmp 0x4574f5
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x457510
test byte [edi + 0x15], 8
je 0x457508
mov ecx, edi
call fcn.00401510
add edi, 0xc
lea ebx, [esi + 0xc]
jmp 0x457515
mov edi, 0x4ffaf8
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x457523
mov esi, dword [ebx]
cmp byte [esi + 0x17], 2
jne 0x457543
cmp dword [0x4fe6e4], 0
je 0x457543
push ecx
mov ecx, 0x4fe6d8
call fcn.00406bd0
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 0x4583d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004cdac0
push esi
mov esi, dword [0x4fd218]
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 0x458496
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004b5b70
test eax, eax
jne 0x458427
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.004016b0
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x458454
push eax
push 1
mov ecx, esi
call fcn.004016b0
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x45845d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x458482
cmp dword [0x4fe6e4], 0
je 0x458482
push ecx
mov ecx, 0x4fe6d8
call fcn.00406bd0
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, 0x4cfc40
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004b5b70
pop edi
pop esi
add esp, 0x10000
ret 4