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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425140
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x444624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x7fff
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
push 8
mov dword [ebp - 0x7c], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x78]
push eax
call fcn.00401240
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x404f58
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test eax, eax
je 0x405092
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x78], eax
test ecx, ecx
je 0x40512d
lea edx, [ebp - 0x78]
jmp 0x40508c
push ebx
push 0x3fff
push eax
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x404fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404fa0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x405092
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x405132
jmp 0x405089
push 0x7fff
push 8
call esi
push eax
call edi
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x74]
push eax
call fcn.00401240
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x405019
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], 2
test eax, eax
je 0x404fef
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x405137
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40500d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 3
jmp 0x404f82
push 0x3fff
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x3fff
jbe 0x4050ae
push 0x64a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], 4
test eax, eax
je 0x40505f
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x405132
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40507d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 5
jmp 0x404f82
lea edx, [ebp - 0x74]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4050aa
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
jmp 0x405111
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4050d6
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 7
test eax, eax
je 0x4050f7
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x405132
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40510f
mov esi, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.0041284a
mov esp, ebp
pop ebp
ret
call fcn.00412550
call fcn.00412550
call fcn.00412550
int3