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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x1000
push esi
mov dword [ebp - 0x10], edi
call fcn.0040c34a
pop ecx
mov dword [ebp - 4], eax
call fcn.00414e1d
movzx eax, ax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x403604
push eax
call fcn.0040c280
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
push dword [edi]
mov edi, 0x401c49
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push edi
push dword [ebp + 0xc]
push eax
call ebx
test eax, eax
jne 0x4143b3
mov eax, dword [ebp - 0x10]
push dword [eax]
push esi
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov ebx, dword [ebp - 4]
mov eax, ebx
cmp byte [eax], 0
je 0x414604
mov al, byte [ebx]
cmp al, 0x25
jne 0x4144ae
lea edi, [ebx + 1]
mov dword [ebp - 0xc], edi
jmp 0x4143dd
cmp byte [edi], 0
je 0x414604
inc edi
cmp byte [edi], 0x25
mov dword [ebp - 8], edi
jne 0x4143d3
push esi
mov byte [ebx], 0
call fcn.0040c34a
mov edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], edx
pop ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4143f9
cmp edi, dword [ebp - 0xc]
mov byte [edi], cl
jne 0x41441f
mov edi, dword [ebp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41440e
mov esi, 0x403600
movsw word es:[edi], word [esi]
jmp 0x414477
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push edi
push dword [ebp - 0xc]
call esi
mov ebx, eax
test ebx, ebx
je 0x41447a
push ebx
call fcn.0040c34a
pop ecx
push ebx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call esi
mov eax, dword [ebp + 8]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414449
mov edi, dword [ebp + 0xc]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x414458
push dword [ebp + 8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c06d
pop ecx
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x414482
sub eax, ecx
lea ebx, [eax + esi - 1]
lea eax, [edi + 1]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414494
mov edi, dword [ebp + 0xc]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4144a1
jmp 0x4145d3
cmp al, 0x40
jne 0x4145fa
lea eax, [ebx + 1]
mov dword [ebp - 0xc], eax
jmp 0x4144c8
cmp byte [eax], 0
je 0x414604
inc eax
cmp byte [eax], 0x40
mov dword [ebp - 8], eax
jne 0x4144be
push esi
mov byte [ebx], 0
call fcn.0040c34a
pop ecx
mov ecx, eax
mov eax, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp + 0xc], ecx
sub ebx, eax
mov dl, byte [eax]
mov byte [ebx + eax], dl
inc eax
test dl, dl
jne 0x4144e6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
mov byte [eax], dl
jne 0x414511
mov edi, ecx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4144fd
mov esi, 0x4035fc
movsw word es:[edi], word [esi]
jmp 0x4145a6
push esi
call fcn.0040c34a
pop ecx
mov dword [ebp + 8], eax
call fcn.00414e1d
movzx eax, ax
push eax
mov ebx, 0x4035e4
push ebx
lea eax, [ebp - 0x218]
push 0x403604
push eax
call fcn.0040c280
mov eax, dword [ebp - 0x10]
add esp, 0x10
push dword [eax]
lea eax, [ebp - 0x218]
push esi
push dword [ebp + 8]
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x414570
mov eax, dword [ebp - 0x10]
push dword [eax]
push esi
push dword [ebp + 8]
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414575
mov edi, dword [ebp + 0xc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x414582
push dword [ebp + 8]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c06d
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4145ab
sub eax, esi
lea ebx, [eax + ecx - 1]
mov eax, dword [ebp - 8]
inc eax
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4145be
mov edi, dword [ebp + 0xc]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4145cb
push dword [ebp - 4]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c06d
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 4], eax
mov esi, 0x1000
mov edi, 0x401c49
inc ebx
cmp byte [ebx], 0
jne 0x4143c1
push dword [ebp - 4]
call fcn.0040c8da
push dword [ebp - 4]
mov esi, eax
call fcn.0040c06d
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8