Function at 0x4aebdc
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x4fb164
push 0
push 0x46
push 0xc5
push 0x78
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x46
push 0xc5
push 0x79
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x20
push 0xc5
push 0x7a
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x20
push 0xc5
push 0x7b
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x4fac38
push 0
push 0xc
push 0x78
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x4fac9c
push 0
push 0xc
push 0x79
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x4fab6c
push 0
push 0xc
push 0x7a
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x4fabd0
push 0
push 0xc
push 0x7b
push ebx
call sub.USER32.dll_SendDlgItemMessageA
cmp dword [0x4f39b0], 0
jne 0x4aec8d
cmp dword [0x4f39b4], 0
jne 0x4aec8d
cmp dword [0x4fe2b0], 0xffffffff
je 0x4aecad
push 0
push 0x7a
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push 0
push 0x7b
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
mov eax, dword [0x4fb054]
push eax
push 0x80
push ebx
call sub.USER32.dll_CheckDlgButton
xor edx, edx
mov dword [0x518e74], edx
push 0
lea ecx, [esi + 0x136]
push ecx
push 0x51f0b4
call fcn.00462b2c
mov dword [0x4fc348], eax
push 0x4f7dec
push 0x64
push 0x4fc34c
lea eax, [esi + 0x150]
push eax
lea edx, [esi + 0x147]
push edx
lea ecx, [esi + 0x141]
push ecx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x4fc34c], 0
je 0x4aed3d
lea eax, [esi + 0x155]
push eax
push 0x4fc34c
call fcn.004014a8
add esp, 8
test eax, eax
je 0x4aed98
lea edx, [esi + 0x15a]
push edx
push 0x4fc34c
call fcn.004014a8
add esp, 8
test eax, eax
je 0x4aed98
push esi
mov esi, 0x4fc34c
mov edi, 0x4fadc8
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 [0x4fc34c], 0
jne 0x4aed98
push esi
mov esi, 0x4fc34c
mov edi, 0x4fad64
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 ebx
call fcn.004d1188
push 0
push ebx
call fcn.004d1378
xor eax, eax
mov dword [0x516ebc], eax
push 0
push 0x3c
push 0xc5
push 0x87
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x1e
push 0xc5
push 0x88
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x4faf5c
push 0
push 0xc
push 0x87
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x4fafc0
push 0
push 0xc
push 0x88
push ebx
call sub.USER32.dll_SendDlgItemMessageA
cmp dword [0x4f9194], 0
je 0x4aee2c
push 0
push 0x87
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
push 0
push 0x88
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
cmp dword [0x4fb028], 0
je 0x4aee52
push 0
push 0x8a
push ebx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_EnableWindow
mov dword [0x4fb02c], 1
mov edx, dword [0x4fb028]
push edx
push 0x89
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x4fb02c]
push ecx
push 0x8a
push ebx
call sub.USER32.dll_CheckDlgButton
mov eax, dword [0x4fb030]
cmp eax, 1
sbb edx, edx
neg edx
push edx
push 0x8d
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x4fb030]
push ecx
push 0x8e
push ebx
call sub.USER32.dll_CheckDlgButton
mov eax, dword [0x4fb034]
push eax
push 0x93
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, dword [0x4fb038]
push edx
push 0x94
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x4fb040]
push ecx
push 0x95
push ebx
call sub.USER32.dll_CheckDlgButton
mov eax, dword [0x4fb03c]
push eax
push 0x96
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, dword [0x4fb044]
push edx
push 0x98
push ebx
call sub.USER32.dll_CheckDlgButton
push 0
mov ecx, dword [0x4fb048]
push ecx
push 0x99
push ebx
call sub.USER32.dll_SetDlgItemInt
push 0
mov eax, dword [0x4fb04c]
push eax
push 0x9c
push ebx
call sub.USER32.dll_SetDlgItemInt
mov edx, dword [0x4fb050]
push edx
push 0x9f
push ebx
call sub.USER32.dll_CheckDlgButton
push 0
movzx ecx, word [0x4faf5a]
push ecx
push 0xa0
push ebx
call sub.USER32.dll_SetDlgItemInt
push ebx
call fcn.004ad5bc
push 0
push 0xa
push 0xc5
push 0xa9
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0x1e
push 0xc5
push 0xab
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 0xa
push 0xc5
push 0xad
push ebx
call sub.USER32.dll_SendDlgItemMessageA
movzx eax, word [0x4f6c68]
mov dword [0x518e7c], eax
mov eax, dword [0x4f6c5c]
mov dword [0x518e78], eax
push eax
push 0xa7
push ebx
call sub.USER32.dll_CheckDlgButton
push 0x4f6c6a
push 0
push 0xc
push 0xa9
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x4f6cce
push 0
push 0xc
push 0xab
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
movzx edx, word [0x4f6c68]
push edx
push 0xad
push ebx
call sub.USER32.dll_SetDlgItemInt
mov ecx, dword [0x4f6c60]
push ecx
push 0xae
push ebx
call sub.USER32.dll_CheckDlgButton
mov eax, dword [0x4f6c64]
push eax
push 0xaf
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, dword [0x4f6c64]
mov dword [0x518e80], edx
mov ecx, dword [0x4f64cc]
push ecx
push 0xb6
push ebx
call sub.USER32.dll_CheckDlgButton
cmp byte [0x50ead0], 0
jne 0x4af044
push 0x64
push 0x50ead0
lea eax, [esi + 0x162]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
push 0x50ead0
push 0
push 0xc
push 0xb8
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0
movzx edx, word [0x4f64c0]
push edx
push 0xbe
push ebx
call sub.USER32.dll_SetDlgItemInt
push 0x50eb34
push 0
push 0xc
push 0xba
push ebx
call sub.USER32.dll_SendDlgItemMessageA
push 0x50eb98
push 0
push 0xc
push 0xbc
push ebx
call sub.USER32.dll_SendDlgItemMessageA
mov ecx, dword [0x4f64c4]
cmp ecx, 1
sbb eax, eax
neg eax
push eax
push 0xc0
push ebx
call sub.USER32.dll_CheckDlgButton
mov edx, dword [0x4f64c4]
push edx
push 0xc1
push ebx
call sub.USER32.dll_CheckDlgButton
mov ecx, dword [0x4f64c8]
push ecx
push 0xc2
push ebx
call sub.USER32.dll_CheckDlgButton
pop edi
pop esi
pop ebx
pop ebp
ret 4