Function at 0x10021ec0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
push 0x3d
cmp ebx, edi
mov esi, ecx
sete al
dec eax
lea ecx, [ebp - 0x10]
and al, 0xe3
mov dword [ebp - 4], esi
add eax, 0x3d
push eax
push dword [ebp + 8]
push edi
push edi
call fcn.100324f0
cmp ebx, edi
je 0x10021f00
lea ecx, [ebp - 0x10]
call fcn.100324de
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], edi
je 0x10021f17
push dword [ebp + 8]
mov ecx, esi
call fcn.10021d8a
test eax, eax
je 0x10022197
cmp dword [0x10044248], edi
je 0x10022197
cmp dword [esi + 0x18], edi
je 0x10022197
or esi, 0xffffffff
mov dword [ebp - 8], edi
cmp ebx, esi
je 0x10021f3f
cmp ebx, 0xfffffffe
jne 0x10022181
mov eax, dword [0x1004424c]
add eax, 0x14
cmp dword [ebp + 0x20], eax
jle 0x10022181
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0xc], edi
and byte [edi], 0
mov eax, dword [0x1004424c]
inc eax
push eax
push dword [0x10044248]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x1004424c]
mov ecx, esi
sub ecx, eax
add edi, eax
add dword [ebp + 0x20], ecx
mov ecx, dword [ebp - 4]
push esi
mov dword [ebp + 0x1c], edi
call fcn.10032028
cmp ebx, esi
mov eax, str.Session
je 0x10021f95
mov eax, str.Index
push dword [0x10044248]
push dword [ebp + 0x20]
push edi
push 0x10043974
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0
je 0x10021fc2
push dword [ebp + 0xc]
call fcn.10020c5e
test eax, eax
pop ecx
jne 0x10021fc2
and byte [edi], al
cmp byte [edi], 0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, str.back
mov esi, str.Requested
jne 0x10022064
push dword [0x10044248]
push 0xffffffffffffffff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [0x10044248]
mov dword [ebp + 0x20], eax
push 0
push str.front
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jl 0x10022064
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp + 0x20]
jge 0x10022064
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push str.url_d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x238]
push dword [0x10044248]
push 0x1f3
push eax
lea eax, [ebp - 0x44]
push 0x10043974
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002205d
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
jmp 0x10022009
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
call fcn.1003206e
cmp dword [ebp - 8], 0
jne 0x10022162
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
jne 0x10022162
cmp dword [ebp + 0x14], 0
je 0x10022162
mov ecx, dword [ebp - 4]
push 0xffffffffffffffff
call fcn.10031fbd
push dword [0x10044248]
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp + 0x20], eax
push eax
lea eax, [ebp - 0x44]
push str.url_d
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x44]
push dword [0x10044248]
push dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp + 0x20]
lea eax, [ebp - 0x44]
push str.persist_d
push eax
call edi
push dword [0x10044248]
lea eax, [ebp - 0x44]
push dword [ebp + 0x10]
push eax
push esi
call fcn.1001fe90
add esp, 0x1c
lea eax, [ebp - 0x44]
push dword [ebp + 0x20]
push str.notifyid_d
push eax
call edi
push dword [0x10044248]
lea eax, [ebp - 0x44]
push dword [ebp + 0x14]
push eax
push esi
call fcn.1001fe90
add esp, 0x1c
lea eax, [ebp - 0x44]
push dword [ebp + 0x20]
push str.prog_d
push eax
call edi
push dword [0x10044248]
xor eax, eax
cmp dword [ebp + 0x18], eax
setne al
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.1001fe90
mov eax, dword [ebp + 0x20]
push dword [0x10044248]
inc eax
push eax
push ebx
push esi
call fcn.1001fe90
mov ecx, dword [ebp - 4]
add esp, 0x2c
call fcn.10031ffe
mov ecx, 0x100441c8
call fcn.100322eb
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10022173
cmp byte [eax], 0
je 0x10022173
push 1
pop esi
jmp 0x10022175
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.100324e1
mov eax, esi
jmp 0x100221a1
push edi
mov ecx, 0x100441c8
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call fcn.10021396
mov esi, eax
jmp 0x10022175
lea ecx, [ebp - 0x10]
call fcn.100324e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c