Function at 0x408930
Capabilities:
Query environment variable
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edx, [ebp - 0x1d4]
push edx
push str.SoftwarePRONTO_settings
push closesocket
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], ecx
xor esi, esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408aae
mov edi, dword [sym.imp.MSVCR100.dll_getenv]
push str.PROLANGUAGE
call edi
push str.NETPRONTO
mov dword [ebp - 0x1dc], eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4089a9
cmp byte [esi], 0
jne 0x4089b5
push 0x4ccddc
call edi
add esp, 4
mov esi, eax
test esi, esi
je 0x408a15
cmp byte [esi], 0
je 0x408a15
lea edx, [ebp - 0x108]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4089c8
lea eax, [ebp - 0x108]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4089e0
mov ecx, dword [str._nls]
mov dl, byte [0x4ccdd8]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x408a15
lea esi, [ebp - 0x108]
mov eax, dword [ebp - 0x1dc]
test eax, eax
je 0x408a24
cmp byte [eax], 0
jne 0x408a5e
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d8]
push ecx
lea edx, [ebp - 0x16c]
push edx
push 0
push 0
push str.language
push eax
mov dword [ebp - 0x1d8], 0x64
call ebx
test eax, eax
jne 0x408a5e
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x1dc], ecx
test esi, esi
je 0x408a67
cmp byte [esi], 0
jne 0x408a9b
mov ecx, dword [ebp - 0x1d4]
lea edx, [ebp - 0x1d8]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.NlsDir
push ecx
mov dword [ebp - 0x1d8], 0x104
call ebx
test eax, eax
jne 0x408a9b
lea esi, [ebp - 0x108]
mov edx, dword [ebp - 0x1d4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1d4]
push eax
push str.SoftwarePRONTOProclient
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408bc2
test edi, edi
je 0x408ad5
cmp byte [edi], al
jne 0x408b09
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d8]
push ecx
lea edx, [ebp - 0x16c]
push edx
push 0
push 0
push str.language
push eax
mov dword [ebp - 0x1d8], 0x64
call ebx
test eax, eax
jne 0x408b09
lea edi, [ebp - 0x16c]
test esi, esi
je 0x408b16
cmp byte [esi], 0
jne 0x408bb5
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push str.NlsDir
mov esi, 0x104
push eax
mov dword [ebp - 0x1d8], esi
call ebx
test eax, eax
je 0x408baf
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d8]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x4ccd84
push eax
mov dword [ebp - 0x1d8], esi
call ebx
test eax, eax
je 0x408b8f
mov ecx, dword [ebp - 0x1d4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408b96
mov edx, dword [str._nls]
mov cl, byte [0x4ccdd8]
mov dword [eax], edx
mov byte [eax + 4], cl
lea esi, [ebp - 0x108]
mov edx, dword [ebp - 0x1d4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x408ec3
cmp byte [edi], 0
je 0x408ec3
test esi, esi
je 0x408ec3
cmp byte [esi], 0
je 0x408ec3
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0x63
lea ecx, [ebp - 0x1d0]
push ecx
push 0xffffffffffffffff
push 0
mov ecx, 0x501490
mov dword [ebp - 0x1e8], 0
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x1e4]
push edi
lea edx, [ebp - 0x1d0]
push edx
push esi
push str._s_s__s
push eax
mov byte [ebp - 0x16d], 0
call dword [sym.imp.MSVCR100.dll_sprintf]
mov esi, dword [ebp - 0x1e0]
add esp, 0x14
mov dword [esi], 0
mov ecx, str.CODES
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408c72
test dl, dl
je 0x408c6e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408c72
add eax, 2
add ecx, 2
test dl, dl
jne 0x408c52
xor eax, eax
jmp 0x408c77
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408eb9
mov ecx, str.codes
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408ca6
test dl, dl
je 0x408ca2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408ca6
add eax, 2
add ecx, 2
test dl, dl
jne 0x408c86
xor eax, eax
jmp 0x408cab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408eb9
mov al, byte [edi]
test al, al
je 0x408da4
lea ecx, [ecx]
cmp al, 0x2e
je 0x408cd1
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408cc0
jmp 0x408da4
cmp byte [edi], 0
je 0x408da4
mov ecx, str..utf8
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408d01
test dl, dl
je 0x408cfd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408d01
add eax, 2
add ecx, 2
test dl, dl
jne 0x408ce1
xor eax, eax
jmp 0x408d06
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408d9e
mov ecx, str..UTF8
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408d35
test dl, dl
je 0x408d31
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408d35
add eax, 2
add ecx, 2
test dl, dl
jne 0x408d15
xor eax, eax
jmp 0x408d3a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408d9e
mov ecx, str..utf_8
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408d65
test dl, dl
je 0x408d61
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408d65
add eax, 2
add ecx, 2
test dl, dl
jne 0x408d45
xor eax, eax
jmp 0x408d6a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408d9e
mov ecx, str..UTF_8
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408d95
test dl, dl
je 0x408d91
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408d95
add eax, 2
add ecx, 2
test dl, dl
jne 0x408d75
xor eax, eax
jmp 0x408d9a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408da4
mov dword [esi], 0xffffffff
mov ebx, dword [ebp - 0x1e4]
mov edi, dword [sym.imp.MSVCR100.dll__open]
push 0
push 0x8000
push ebx
call edi
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x408e06
lea eax, [ebx - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408dc6
mov ecx, dword [str..utf8]
push 0
mov dword [eax], ecx
mov dx, word [0x4ccd64]
push 0x8000
push ebx
mov word [eax + 4], dx
call edi
mov esi, eax
add esp, 0xc
test esi, esi
js 0x408ec3
mov edi, dword [ebp - 0x1e0]
mov dword [edi], 0xffffffff
jmp 0x408e0c
mov edi, dword [ebp - 0x1e0]
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
cmp eax, 3
jge 0x408e44
push esi
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x108]
cmp al, 0xef
jne 0x408e86
cmp byte [ebp - 0x107], 0xbb
jne 0x408e99
cmp byte [ebp - 0x106], 0xbf
jne 0x408e99
push esi
mov dword [edi], 0xffffffff
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
cmp al, 0xff
jne 0x408e99
cmp byte [ebp - 0x107], 0xfe
jne 0x408e99
mov dword [edi], 1
push esi
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov dword [0x501488], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004b7f56
mov esp, ebp
pop ebp
ret