Function at 0x4d9eca
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [0x56a0e8]
push esi
call fcn.00412773
test eax, eax
je 0x4da525
push esi
push 1
call fcn.004584c2
push 0
push 0x46
push 0xc5
push 0x80
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x46
push 0xc5
push 0x81
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x20
push 0xc5
push 0x82
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x20
push 0xc5
push 0x83
push ebx
call sub.USER32.dll_SendDlgItemMessageA
lea eax, [esi + 0xd88]
push eax
push 0
push 0xc
push 0x80
push ebx
call sub.USER32.dll_SendDlgItemMessageA
lea edx, [esi + 0xdec]
push edx
push 0
push 0xc
push 0x81
push ebx
call sub.USER32.dll_SendDlgItemMessageA
lea ecx, [esi + 0xe50]
push ecx
push 0
push 0xc
push 0x82
push ebx
call sub.USER32.dll_SendDlgItemMessageA
lea eax, [esi + 0xeb4]
push eax
push 0
push 0xc
push 0x83
push ebx
call sub.USER32.dll_SendDlgItemMessageA
mov edx, 1
cmp dword [0x56a10c], 0
jne 0x4d9fa6
dec edx
push edx
push 0x88
push ebx
call sub.USER32.dll_CheckDlgButton
xor ecx, ecx
mov dword [0x569e10], ecx
call fcn.00504100
push 0x57fc34
push 0x64
push 0x586390
push 0x569f5d
push 0x569f54
push 0x569f4e
call fcn.004acae5
cmp byte [0x586390], 0
je 0x4da014
push 0x569f62
push 0x586390
call fcn.0054c494
add esp, 8
test eax, eax
je 0x4da075
push 0x569f67
push 0x586390
call fcn.0054c494
add esp, 8
test eax, eax
je 0x4da075
lea eax, [esi + 0x1814]
push esi
mov edi, eax
mov esi, 0x586390
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
cmp byte [0x586390], 0
jne 0x4da075
lea eax, [esi + 0x1044]
push esi
mov edi, eax
mov esi, 0x586390
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push ebx
call fcn.0050429f
push 0
push ebx
call fcn.00504542
xor eax, eax
mov dword [0x569e0c], eax
xor edx, edx
mov dword [0x569e20], edx
push 0
push 0x3c
push 0xc5
push 0x8f
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x1e
push 0xc5
push 0x90
push ebx
call sub.USER32.dll_SendDlgItemMessageA
lea ecx, [esi + 0x448]
push ecx
push 0
push 0xc
push 0x8f
push ebx
call sub.USER32.dll_SendDlgItemMessageA
add esi, 0x4ac
push esi
push 0
push 0xc
push 0x90
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push dword [0x56a0e8]
call fcn.00412a2f
test eax, eax
jne 0x4da106
push dword [0x56a0e8]
call fcn.00412abb
test eax, eax
je 0x4da12c
push 0
push 0x80
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push 0
push 0x81
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push dword [0x56a0e8]
call fcn.00413243
test eax, eax
je 0x4da161
push 0
push 0x8f
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push 0
push 0x90
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
cmp dword [0x56a0f0], 0
je 0x4da187
push 0
push 0x92
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
mov dword [0x56a0f4], 1
mov eax, 1
cmp dword [0x56a0f0], 0
jne 0x4da196
dec eax
push eax
push 0x91
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, 1
cmp dword [0x56a0f4], 0
jne 0x4da1b1
dec edx
push edx
push 0x92
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, 1
cmp dword [0x56a0f8], 0
je 0x4da1cc
dec ecx
push ecx
push 0x95
push ebx
call sub.USER32.dll_CheckDlgButton
mov eax, 1
cmp dword [0x56a0f8], 0
jne 0x4da1e7
dec eax
push eax
push 0x96
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, 1
cmp dword [0x56a0fc], 0
jne 0x4da202
dec edx
push edx
push 0x9b
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, 1
cmp dword [0x56a100], 0
jne 0x4da21d
dec ecx
push ecx
push 0x9c
push ebx
call sub.USER32.dll_CheckDlgButton
mov eax, 1
cmp dword [0x56a108], 0
jne 0x4da238
dec eax
push eax
push 0x9d
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, 1
cmp dword [0x56a104], 0
jne 0x4da253
dec edx
push edx
push 0x9e
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x56a110]
mov dword [0x569d78], ecx
mov eax, dword [0x56a114]
mov dword [0x569d7c], eax
mov edx, dword [0x56a118]
mov dword [0x569d80], edx
mov ecx, dword [0x56a11c]
mov dword [0x569d84], ecx
mov eax, dword [0x56a120]
mov dword [0x569d88], eax
mov edx, dword [0x56aca8]
mov dword [0x569d8c], edx
mov ecx, dword [0x56acac]
mov dword [0x569d90], ecx
mov esi, 0x581f30
mov edi, 0x58465c
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x56a134]
mov dword [0x569d94], eax
mov edx, dword [0x56a138]
mov dword [0x569d98], edx
mov ecx, dword [0x56a12c]
mov dword [0x569d9c], ecx
mov eax, dword [0x56a130]
mov dword [0x569da0], eax
mov edx, dword [0x56a13c]
mov dword [0x569da4], edx
mov ecx, dword [0x56a140]
mov dword [0x569da8], ecx
mov eax, dword [0x56a144]
mov dword [0x569dac], eax
mov edx, dword [0x56a148]
mov dword [0x569db0], edx
push 0
movzx ecx, word [0x56a0ec]
push ecx
push 0xa0
push ebx
call sub.USER32.dll_SetDlgItemInt
push 0
push 0xa
push 0xc5
push 0xb1
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x1e
push 0xc5
push 0xb3
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0xa
push 0xc5
push 0xb5
push ebx
call sub.USER32.dll_SendDlgItemMessageA
movzx eax, word [0x564804]
mov dword [0x569e18], eax
mov eax, dword [0x5647f4]
mov dword [0x569e14], eax
mov edx, 1
test eax, eax
jne 0x4da3a1
dec edx
push edx
push 0xaf
push ebx
call sub.USER32.dll_CheckDlgButton
push 0x57fb38
push 0
push 0xc
push 0xb1
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x57fb9c
push 0
push 0xc
push 0xb3
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
movzx ecx, word [0x564804]
push ecx
push 0xb5
push ebx
call sub.USER32.dll_SetDlgItemInt
mov eax, 1
cmp dword [0x5647f8], 0
jne 0x4da3f9
dec eax
push eax
push 0xb6
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, 1
cmp dword [0x5647fc], 0
jne 0x4da414
dec edx
push edx
push 0xb7
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x5647fc]
mov dword [0x569e1c], ecx
mov eax, 1
cmp dword [0x564800], 0
jne 0x4da43b
dec eax
push eax
push 0xb8
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, 1
cmp dword [0x563d68], 0
jne 0x4da456
dec edx
push edx
push 0xbe
push ebx
call sub.USER32.dll_CheckDlgButton
cmp byte [0x57f494], 0
jne 0x4da47c
push 0x64
push 0x57f494
push str.SOCKS_HOST
call sub.KERNEL32.dll_GetEnvironmentVariableA
push 0x57f494
push 0
push 0xc
push 0xc0
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
movzx ecx, word [0x563d5c]
push ecx
push 0xc6
push ebx
call sub.USER32.dll_SetDlgItemInt
push 0x57f4f8
push 0
push 0xc
push 0xc2
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x57f55c
push 0
push 0xc
push 0xc4
push ebx
call sub.USER32.dll_SendDlgItemMessageA
cmp dword [0x563d60], 1
jne 0x4da4e5
push 1
push 0xc9
push ebx
call sub.USER32.dll_CheckDlgButton
jmp 0x4da50a
cmp dword [0x563d60], 2
jne 0x4da4fd
push 1
push 0xcb
push ebx
call sub.USER32.dll_CheckDlgButton
jmp 0x4da50a
push 1
push 0xc8
push ebx
call sub.USER32.dll_CheckDlgButton
mov eax, 1
cmp dword [0x563d64], 0
jne 0x4da519
dec eax
push eax
push 0xca
push ebx
call sub.USER32.dll_CheckDlgButton
pop edi
pop esi
pop ebx
pop ebp
ret 4