Function at 0x518ed0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, dword [0x67feb4]
push ebp
call fcn.00508aa0
add esp, 4
test eax, eax
je 0x5195b5
push ebx
push esi
push edi
push ebp
push 1
call fcn.00461560
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
add esp, 8
push 0
push 0x100
push 0xc5
push 0x78
push esi
call edi
push 0
push 0x100
push 0xc5
push 0x79
push esi
call edi
push 0
push 0x100
push 0xc5
push 0x7a
push esi
call edi
push 0
push 0x100
push 0xc5
push 0x7b
push esi
call edi
lea eax, [ebp + 0x3930]
push eax
push 0
push 0xc
push 0x78
push esi
call edi
lea ecx, [ebp + 0x3a62]
push ecx
push 0
push 0xc
push 0x79
push esi
call edi
lea edx, [ebp + 0x3b94]
push edx
push 0
push 0xc
push 0x7a
push esi
call edi
lea eax, [ebp + 0x3cc6]
push eax
push 0
push 0xc
push 0x7b
push esi
call edi
mov ebx, dword [0x61a544]
xor ecx, ecx
test ebx, ebx
mov ebx, dword [sym.imp.USER32.dll_CheckDlgButton]
setne cl
push ecx
push 0x7c
push esi
call ebx
push 2
push 0x21
push 0x8d
push esi
mov dword [0x6845c8], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0057db30
call fcn.005487a0
push 0
push esi
call fcn.00549cc0
add esp, 0x14
xor eax, eax
push eax
push 0x100
push 0xc5
push 0xa3
push esi
mov dword [0x6845c0], eax
mov dword [0x6845c4], eax
call edi
push 0
push 0x100
push 0xc5
push 0xa4
push esi
call edi
lea edx, [ebp + 0x14bc]
push edx
push 0
push 0xc
push 0xa3
push esi
call edi
add ebp, 0x15ee
push ebp
push 0
push 0xc
push 0xa4
push esi
call edi
mov eax, dword [0x67feb4]
push eax
call fcn.00508d40
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
add esp, 4
test eax, eax
jne 0x519051
mov ecx, dword [0x67feb4]
push ecx
call fcn.00508e00
add esp, 4
test eax, eax
je 0x51906d
push 0
push 0x78
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
push 0
push 0x79
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
mov edx, dword [0x67feb4]
push edx
call fcn.00509690
add esp, 4
test eax, eax
je 0x5190a2
push 0
push 0xa3
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
push 0
push 0xa4
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
mov eax, dword [0x61a52c]
test eax, eax
je 0x5190c6
push 0
push 0xa6
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
mov dword [0x61a530], 1
mov ebp, dword [0x61a52c]
xor eax, eax
test ebp, ebp
setne al
push eax
push 0xa5
push esi
call ebx
mov ebp, dword [0x61a530]
xor ecx, ecx
test ebp, ebp
setne cl
push ecx
push 0xa6
push esi
call ebx
mov ebp, dword [0x61a534]
xor edx, edx
test ebp, ebp
sete dl
push edx
push 0xa9
push esi
call ebx
mov edx, dword [0x61a534]
xor eax, eax
test edx, edx
setne al
push eax
push 0xaa
push esi
call ebx
mov edx, dword [0x680f38]
xor ecx, ecx
test edx, edx
setne cl
push ecx
push 0xaf
push esi
call ebx
mov ecx, dword [0x61a538]
xor edx, edx
test ecx, ecx
setne dl
push edx
push 0xb0
push esi
call ebx
mov ecx, dword [0x61a540]
xor eax, eax
test ecx, ecx
setne al
push eax
push 0xb1
push esi
call ebx
mov eax, dword [0x61a53c]
xor ecx, ecx
test eax, eax
setne cl
push ecx
push 0xb2
push esi
call ebx
mov eax, dword [0x61a3e0]
xor edx, edx
test eax, eax
setne dl
push edx
push 0xb3
push esi
call ebx
mov ebp, dword [0x680f20]
xor eax, eax
test ebp, ebp
setne al
push eax
push 0xb4
push esi
call ebx
mov ecx, dword [0x61a548]
mov edx, dword [0x61a54c]
mov eax, dword [0x61a550]
mov dword [0x6843d4], ecx
mov ecx, dword [0x61a554]
mov dword [0x6843d8], edx
mov edx, dword [0x61a558]
mov dword [0x6843dc], eax
mov eax, dword [0x61a704]
mov dword [0x6843e0], ecx
mov ecx, dword [0x687438]
mov dword [0x6843e4], edx
mov dx, word [0x61a708]
mov dword [0x6843e8], eax
mov ax, word [0x61a70c]
mov dword [0x6843ec], ecx
mov ecx, dword [0x68743c]
mov word [0x6843f8], dx
mov edx, dword [0x687440]
mov word [0x6843fc], ax
mov dword [0x6843f0], ecx
mov dword [0x6843f4], edx
xor eax, eax
jmp 0x519230
mov cl, byte [eax + 0x687448]
mov byte [eax + 0x684400], cl
inc eax
test cl, cl
jne 0x519230
push str.6667
push 0
push 0xc
push 0xb6
push esi
call edi
mov eax, dword [0x61a9d4]
push 0x693b88
push 0x432
push 0x683b68
mov dword [0x683f9c], eax
call fcn.00425550
push 0x693fc0
push 0x432
push 0x683730
call fcn.00425550
push 0x6943f8
push 0x432
push 0x6832f8
call fcn.00425550
add esp, 0x24
push 0
push 0x100
push 0xc5
push 0xc5
push esi
call edi
push 0
push 0x100
push 0xc5
push 0xc7
push esi
call edi
push 0
push 0x100
push 0xc5
push 0xc9
push esi
call edi
mov eax, dword [0x66ada8]
movzx ecx, word [0x61a1cc]
xor edx, edx
test eax, eax
setne dl
mov dword [0x6845d0], ecx
mov dword [0x6845cc], eax
push edx
push 0xc3
push esi
call ebx
push 0x66adb0
push 0
push 0xc
push 0xc5
push esi
call edi
push 0x66aee8
push 0
push 0xc
push 0xc7
push esi
call edi
movzx eax, word [0x61a1cc]
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0
push eax
push 0xc9
push esi
call ebp
mov eax, dword [0x61a1c4]
xor ecx, ecx
test eax, eax
setne cl
push ecx
push 0xca
push esi
call ebx
mov ecx, dword [0x61a1c8]
xor edx, edx
test ecx, ecx
setne dl
push edx
push 0xcb
push esi
call ebx
mov eax, dword [0x61a1c8]
mov dword [0x6845d4], eax
mov eax, dword [0x66adac]
xor ecx, ecx
test eax, eax
setne cl
push ecx
push 0xcc
push esi
call ebx
push 0
push 0
push 0x14b
push 0xd3
push esi
call edi
push 0
push 0x110e
call fcn.00424130
add esp, 8
push eax
push 0
push 0x143
push 0xd3
push esi
call edi
push 0
push 0x110f
call fcn.00424130
add esp, 8
push eax
push 0
push 0x143
push 0xd3
push esi
call edi
push 0
push 0x1110
call fcn.00424130
add esp, 8
push eax
push 0
push 0x143
push 0xd3
push esi
call edi
push 0
push 0x1111
call fcn.00424130
add esp, 8
push eax
push 0
push 0x143
push 0xd3
push esi
call edi
mov eax, dword [0x649044]
test eax, eax
mov eax, dword [0x649040]
push 0
je 0x519427
test eax, eax
je 0x51942f
push 3
jmp 0x519435
test eax, eax
je 0x519433
push 2
jmp 0x519435
push 1
jmp 0x519435
push 0
push 0x14e
push 0xd3
push esi
call edi
push 0
push 0
push 0x14b
push 0xd5
push esi
call edi
push 0
push 0x1112
call fcn.00424130
add esp, 8
push eax
push 0
push 0x143
push 0xd5
push esi
call edi
push 0
push 0x1113
call fcn.00424130
add esp, 8
push eax
push 0
push 0x143
push 0xd5
push esi
call edi
push 0
push 0x1114
call fcn.00424130
add esp, 8
push eax
push 0
push 0x143
push 0xd5
push esi
call edi
mov eax, dword [0x64903c]
test eax, eax
jl 0x5194be
cmp eax, 2
jle 0x5194c5
xor eax, eax
mov dword [0x64903c], eax
push 0
push eax
push 0x14e
push 0xd5
push esi
call edi
mov al, byte [0x648c98]
test al, al
jne 0x519501
push 0x132
push 0x648c98
call fcn.00423310
add esp, 8
push eax
push 0x648c98
push str.SOCKS_HOST
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x648c98
push 0
push 0xc
push 0xd7
push esi
call edi
movzx edx, word [0x61a090]
push 0
push edx
push 0xdd
push esi
call ebp
push 0x648dd0
push 0
push 0xc
push 0xd9
push esi
call edi
push 0x648f08
push 0
push 0xc
push 0xdb
push esi
call edi
push 0x5f4c90
push 0
push 0xc
push 0xdf
push esi
call edi
mov ebx, dword [0x64904c]
test ebx, ebx
je 0x5195b2
mov eax, dword [ebx]
push eax
push str._s_r_n
push 0x67feb8
call fcn.005d9929
add esp, 0xc
push 0x7d000
push 0x7d000
push 1
push 0xdf
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00489e90
add esp, 0x10
push 0x67feb8
push 0
push 0xc2
push 0xdf
push esi
call edi
mov ebx, dword [ebx + 0x40]
test ebx, ebx
jne 0x519561
pop edi
pop esi
pop ebx
pop ebp
ret