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

Disassembly:
push ecx
mov edx, dword [0x457780]
test edx, edx
jne 0x41bdb6
mov edx, 0x457784
mov dword [0x457780], edx
push ebx
push ebp
push esi
mov esi, 0x457784
cmp edx, esi
push edi
jbe 0x41be6c
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push ebx
push esi
call ebp
add esp, 8
test eax, eax
jne 0x41bdfb
mov eax, dword [esp + 0x1c]
mov edi, esi
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + esi + 1]
push ecx
call ebp
add esp, 8
test eax, eax
je 0x41be33
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 1]
mov edx, dword [0x457780]
cmp esi, edx
jb 0x41bdc7
jmp 0x41be70
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 0x445698
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x20]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, edx
lea esi, [ecx + esi + 2]
push esi
call ebp
add esp, 8
test eax, eax
jne 0x41be64
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x18]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x457780]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x1c]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov dword [0x457780], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x457780]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov al, byte [0x457670]
not ecx
dec ecx
test al, al
lea edx, [edx + ecx + 1]
mov dword [0x457780], edx
jne 0x41c06d
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [esp + 0x1c]
mov esi, 2
mov dword [0x44556c], 0xffffffff
mov dword [esp + 0x10], esi
cmp dword [0x44556c], 0xffffffff
jne 0x41c063
cmp esi, 3
ja case.default.0x41bf2c
jmp dword [esi*4 + 0x41c33c]
cmp esi, 3
jne 0x41bf3c
xor edi, edi
jmp 0x41bf6b
mov eax, dword [0x44555c]
test eax, eax
je 0x41bf6b
mov eax, 0x44555c
mov esi, eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x41bf67
mov ecx, dword [esi + 4]
add esi, 4
test ecx, ecx
mov eax, esi
jne 0x41bf4c
mov esi, dword [esp + 0x10]
push 0x105
push 0x457670
push edi
call ebx
push 0x457568
push 0x457670
call fcn.00418b10
push 0x457670
push 0x445454
push 0
push 0x457568
call fcn.004189f0
mov eax, dword [0x457780]
add esp, 0x18
mov edx, 0x457f84
sub edx, eax
push 0x457670
push edx
push eax
push 0x445698
push 0
push 0
call ebp
cmp eax, 1
jle case.default.0x41bf2c
mov eax, dword [0x457780]
push 0x445698
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je case.default.0x41bf2c
mov dword [0x44556c], esi
jmp case.default.0x41bf2c
push 0x104
push 0x445454
push 0x457670
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [0x457780]
add esp, 0xc
mov ecx, 0x457f84
mov byte [0x457774], 0
sub ecx, eax
push 0x457670
push ecx
push eax
push 0x445698
push 0
push 0
call ebp
cmp eax, 1
jle case.default.0x41bf2c
mov edx, dword [0x457780]
push 0x445698
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je case.default.0x41bf2c
mov dword [0x44556c], 1
jmp case.default.0x41bf2c
mov dword [0x44556c], 0
dec esi
mov dword [esp + 0x10], esi
jns 0x41bf16
mov ebx, dword [esp + 0x18]
mov edx, dword [0x457780]
mov eax, dword [0x44556c]
test eax, eax
jle 0x41c098
mov ecx, dword [esp + 0x1c]
mov eax, 0x457f84
sub eax, edx
push 0x457670
push eax
push edx
push 0x445698
push ebx
push ecx
call ebp
mov eax, dword [0x44556c]
test eax, eax
je 0x41c0bb
mov edx, dword [0x457780]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x445698
push edx
call ebp
add esp, 8
test eax, eax
jne 0x41c300
jmp 0x41c0c1
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push ebx
push str.TRANSBASE_SERVICENAMES
call ebp
add esp, 8
test eax, eax
jne 0x41c10f
push 0x44567c
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x41c0e9
mov edi, eax
jmp 0x41c2df
mov ecx, dword [0x457780]
mov edx, dword [0x445670]
mov dword [ecx], edx
mov eax, dword [0x445674]
mov dword [ecx + 4], eax
mov dx, word [0x445678]
mov word [ecx + 8], dx
jmp 0x41c300
push ebx
push str.SERVICENAME
call ebp
add esp, 8
test eax, eax
jne 0x41c16c
push 0x44565c
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x41c137
mov edi, eax
jmp 0x41c2df
mov ecx, dword [0x457780]
mov edx, dword [0x445648]
mov dword [ecx], edx
mov eax, dword [0x44564c]
mov dword [ecx + 4], eax
mov edx, dword [0x445650]
mov dword [ecx + 8], edx
mov eax, dword [0x445654]
mov dword [ecx + 0xc], eax
mov dl, byte [0x445658]
mov byte [ecx + 0x10], dl
jmp 0x41c300
push ebx
push str.TRANSBASE_LOCAL
call ebp
add esp, 8
test eax, eax
jne 0x41c1ba
push 0x445630
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x41c194
mov edi, eax
jmp 0x41c2df
mov edi, 0x445698
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x457780]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x41c2fb
push ebx
push str.TRANSBASE
call ebp
add esp, 8
test eax, eax
jne 0x41c1d3
mov edi, 0x457568
jmp 0x41c2df
push ebx
push 0x445624
call ebp
add esp, 8
test eax, eax
jne 0x41c1f5
mov ecx, dword [0x457780]
mov edx, dword [0x421698]
mov dword [ecx], edx
jmp 0x41c300
push ebx
push 0x445614
call ebp
add esp, 8
test eax, eax
jne 0x41c223
mov eax, dword [0x457780]
push eax
push 0x445574
push 0
push 0x457568
call fcn.004189f0
add esp, 0x10
jmp 0x41c300
push ebx
push 0x445604
call ebp
add esp, 8
test eax, eax
jne 0x41c251
mov ecx, dword [0x457780]
push ecx
push 0x4455f8
push eax
push 0x457568
call fcn.004189f0
add esp, 0x10
jmp 0x41c300
push ebx
push 0x4455e8
call ebp
add esp, 8
test eax, eax
jne 0x41c27f
mov edx, dword [0x457780]
push edx
push 0x4455d8
push eax
push 0x457568
call fcn.004189f0
add esp, 0x10
jmp 0x41c300
push ebx
push 0x4455c8
call ebp
add esp, 8
test eax, eax
jne 0x41c2aa
mov eax, dword [0x457780]
push eax
push 0x4455b8
push 0
push 0x457568
call fcn.004189f0
add esp, 0x10
jmp 0x41c300
push ebx
push 0x4455b0
call ebp
add esp, 8
test eax, eax
jne 0x41c2da
mov ecx, dword [0x457780]
mov edx, dword [0x4455a4]
mov dword [ecx], edx
mov eax, dword [0x4455a8]
mov dword [ecx + 4], eax
mov edx, dword [0x4455ac]
mov dword [ecx + 8], edx
jmp 0x41c300
mov edi, 0x445698
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x457780]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x457780]
push 0x445698
push ecx
call ebp
mov esi, dword [0x457780]
mov edx, eax
add esp, 8
mov edi, esi
neg edx
sbb edx, edx
or ecx, 0xffffffff
xor eax, eax
and edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
lea eax, [esi + ecx + 1]
pop esi
mov dword [0x457780], eax
pop ebp
mov eax, edx
pop ebx
pop ecx
ret