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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3f
push 0
push 0
dec ecx
jne 0x4231a0
push ecx
push ebx
push esi
push edi
mov esi, eax
mov ebx, 0x4639f8
xor eax, eax
push ebp
push 0x4238fb
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00422de0
cmp dword [ebx], 0
je 0x4237bb
cmp dword [0x4639f4], 0
je 0x4237bb
lea eax, [ebp - 0x150]
mov ecx, 0x423914
mov edx, dword [ebx]
call fcn.00405568
mov eax, dword [ebp - 0x150]
call fcn.00409808
test al, al
je 0x4237bb
lea eax, [ebp - 0x154]
mov ecx, 0x423928
mov edx, dword [ebx]
call fcn.00405568
mov eax, dword [ebp - 0x154]
call fcn.00409808
test al, al
je 0x4237bb
lea eax, [ebp - 0x158]
mov ecx, 0x42393c
mov edx, dword [ebx]
call fcn.00405568
mov eax, dword [ebp - 0x158]
call fcn.00409808
test al, al
je 0x4237bb
lea eax, [ebp - 0x15c]
mov ecx, 0x423954
mov edx, dword [ebx]
call fcn.00405568
mov eax, dword [ebp - 0x15c]
call fcn.00409808
test al, al
je 0x4237bb
lea eax, [ebp - 0x160]
mov ecx, 0x42393c
mov edx, dword [ebx]
call fcn.00405568
mov eax, dword [ebp - 0x160]
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_LoadLibraryA
lea eax, [ebp - 0x164]
mov ecx, 0x423954
mov edx, dword [ebx]
call fcn.00405568
mov eax, dword [ebp - 0x164]
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_LoadLibraryA
lea eax, [ebp - 0x168]
mov ecx, 0x423914
mov edx, dword [ebx]
call fcn.00405568
mov eax, dword [ebp - 0x168]
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_LoadLibraryA
push ebp
call fcn.00423020
pop ecx
lea eax, [ebp - 0x40]
push eax
push 8
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4237bb
lea eax, [ebp - 0x14b]
xor ecx, ecx
mov edx, 0x104
call fcn.0040396c
push 0x104
lea eax, [ebp - 0x14b]
push eax
push 0x423964
call sub.KERNEL32.DLL_GetEnvironmentVariableA
xor ebx, ebx
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x14b]
mov ecx, 0x105
call fcn.004054a4
lea eax, [ebp - 0x16c]
mov edx, 0x423974
call fcn.0040551c
mov eax, dword [ebp - 0x16c]
call fcn.004056e0
push eax
push 0x104
push 0x4639fc
push 0x423994
push 0x423998
lea edx, [ebp - 0x174]
movzx eax, bx
call fcn.0040930c
mov ecx, dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 0x4239a8
call fcn.00405568
mov eax, dword [ebp - 0x170]
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
jmp 0x4233aa
xor eax, eax
push ebp
push 0x4237b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x188]
lea edx, [ebp - 0x14b]
mov ecx, 0x105
call fcn.004054a4
push dword [ebp - 0x188]
push 0x4239b8
lea eax, [ebp - 0x18c]
mov edx, 0x4639fc
mov ecx, 0x105
call fcn.004054a4
push dword [ebp - 0x18c]
push 0x4239d4
push 0x4239e0
lea eax, [ebp - 0x184]
mov edx, 5
call fcn.004055e4
mov eax, dword [ebp - 0x184]
call fcn.004056e0
mov edx, eax
lea eax, [ebp - 0x180]
call fcn.0040542c
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.00422ba0
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
call fcn.00405b54
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x3c]
call fcn.0041abfc
mov eax, esi
call fcn.00405234
cmp dword [ebp - 0x3c], 0
jne 0x423470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4237bb
xor eax, eax
push ebp
push 0x4237a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x190]
mov edx, 0x4239f0
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp - 0x190]
mov edx, dword [eax]
call dword [edx + 0x90]
mov eax, dword [eax + 8]
mov dword [0x463b04], eax
cmp dword [0x463b04], 0
jg 0x4234c2
call fcn.00404c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4237bb
lea eax, [ebp - 0x198]
lea edx, [ebp - 0x14b]
mov ecx, 0x105
call fcn.004054a4
push dword [ebp - 0x198]
push 0x4239b8
lea eax, [ebp - 0x19c]
mov edx, 0x4639fc
mov ecx, 0x105
call fcn.004054a4
push dword [ebp - 0x19c]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.004055e4
mov eax, dword [ebp - 0x194]
call fcn.004056e0
push eax
call dword [ebp - 0x28]
pop ecx
test eax, eax
jne 0x42378a
call dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x423787
push 0
push 1
mov eax, dword [ebp - 0x44]
push eax
call dword [ebp - 0x30]
add esp, 0xc
test eax, eax
jne 0x42377f
movzx eax, word [0x463b04]
dec eax
test ax, ax
jb 0x42377f
inc eax
mov word [ebp - 0x46], ax
xor ebx, ebx
push dword [esi]
push 0x423a08
push 0x423a20
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.004055e4
mov edx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1a4]
call fcn.00405b54
push dword [ebp - 0x1a4]
push 0x423a2c
lea edx, [ebp - 0x1bc]
movzx eax, bx
call fcn.0040930c
push dword [ebp - 0x1bc]
push 0x423a3c
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.004055e4
mov edx, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1b4]
call fcn.00405b54
mov edx, dword [ebp - 0x1b4]
lea ecx, [ebp - 0x1b0]
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x1b0]
lea edx, [ebp - 0x1ac]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
push dword [ebp - 0x1ac]
push 0x423a4c
push ebp
push 0x423a2c
lea edx, [ebp - 0x1dc]
movzx eax, bx
call fcn.0040930c
push dword [ebp - 0x1dc]
push 0x423a58
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.004055e4
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
call fcn.00405b54
mov edx, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x1d0]
lea edx, [ebp - 0x1cc]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x1cc]
lea eax, [ebp - 0x1c8]
call fcn.004054d8
mov eax, dword [ebp - 0x1c8]
lea edx, [ebp - 0x1c4]
call fcn.00422d18
pop ecx
mov edx, dword [ebp - 0x1c4]
lea eax, [ebp - 0x1c0]
call fcn.00405b54
push dword [ebp - 0x1c0]
push 0x423a4c
push ebp
push 0x423a2c
lea edx, [ebp - 0x1fc]
movzx eax, bx
call fcn.0040930c
push dword [ebp - 0x1fc]
push 0x423a74
lea eax, [ebp - 0x1f8]
mov edx, 3
call fcn.004055e4
mov edx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x1f4]
call fcn.00405b54
mov edx, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f0]
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax]
call dword [edi + 0x24]
mov eax, dword [ebp - 0x1f0]
lea edx, [ebp - 0x1ec]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
call fcn.004054d8
mov eax, dword [ebp - 0x1e8]
lea edx, [ebp - 0x1e4]
call fcn.00422d18
pop ecx
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1e0]
call fcn.00405b54
push dword [ebp - 0x1e0]
push 0x423a8c
lea eax, [ebp - 0x1a0]
mov edx, 7
call fcn.00405c50
mov edx, dword [ebp - 0x1a0]
mov eax, esi
call fcn.004054d8
inc ebx
dec word [ebp - 0x46]
jne 0x423564
mov eax, dword [ebp - 0x44]
push eax
call dword [ebp - 0x38]
pop ecx
call dword [ebp - 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4237a7
lea eax, [ebp - 0x3c]
call fcn.00406f08
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423905
lea eax, [ebp - 0x1fc]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 0x1f4]
call fcn.004059a8
lea eax, [ebp - 0x1f0]
call fcn.00406f08
lea eax, [ebp - 0x1ec]
call fcn.004059a8
lea eax, [ebp - 0x1e8]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 0x1e0]
call fcn.004059a8
lea eax, [ebp - 0x1dc]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 0x1d4]
call fcn.004059a8
lea eax, [ebp - 0x1d0]
call fcn.00406f08
lea eax, [ebp - 0x1cc]
call fcn.004059a8
lea eax, [ebp - 0x1c8]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 0x1c0]
call fcn.004059a8
lea eax, [ebp - 0x1bc]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 0x1b4]
call fcn.004059a8
lea eax, [ebp - 0x1b0]
call fcn.00406f08
lea eax, [ebp - 0x1ac]
call fcn.004059a8
lea eax, [ebp - 0x1a8]
call fcn.00405234
lea eax, [ebp - 0x1a4]
mov edx, 2
call fcn.004059c0
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.00405258
lea eax, [ebp - 0x190]
call fcn.00406f08
lea eax, [ebp - 0x18c]
mov edx, 5
call fcn.00405258
lea eax, [ebp - 0x178]
call fcn.004059a8
lea eax, [ebp - 0x174]
mov edx, 0xa
call fcn.00405258
lea eax, [ebp - 0x3c]
call fcn.00406f08
ret