Function at 0x40fef0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a446e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x868], ebx
mov eax, dword [str.state]
mov cx, word [0x4d4798]
mov edx, dword [str.name]
mov dword [esp + 0x44], eax
mov al, byte [0x4d4790]
mov word [esp + 0x48], cx
mov ecx, dword [0x4d4788]
mov byte [esp + 0x20], al
mov eax, dword [0x4d4780]
mov dword [esp + 0x1c], edx
mov edx, dword [str.download]
mov dword [esp + 0x28], ecx
mov cl, byte [0x4d4784]
mov dword [esp + 0x34], eax
mov eax, dword [0x4d8094]
mov dword [esp + 0x4a], ebx
mov dword [esp + 0x21], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
mov byte [esp + 0x38], cl
mov dword [esp + 0x39], ebx
xor edi, edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x868], 4
lea edx, [esp + 0x20]
push 0xa
push edx
push edi
call fcn.00479ed6
lea eax, [esp + 0x37]
push 0xa
push eax
push edi
call fcn.00479ed6
mov ecx, dword [esp + 0x898]
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x60]
push ecx
push 0x800
push edx
lea eax, [esp + 0x28]
push ebx
push eax
push str.Group
call esi
mov ebp, eax
cmp ebp, ebx
je 0x4100da
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x14]
call fcn.0048f7ca
mov edx, dword [esp + 0x880]
lea eax, [esp + 0x60]
push edx
push 0x800
push eax
lea ecx, [esp + 0x34]
push ebx
push ecx
push str.Group
call esi
mov ebp, eax
cmp ebp, ebx
je 0x4100da
lea edx, [esp + 0x60]
lea ecx, [esp + 0x18]
push edx
call fcn.0048f7ca
lea eax, [esp + 0x38]
push 0xa
push eax
push edi
call fcn.00479ed6
mov ecx, dword [esp + 0x88c]
add esp, 0xc
lea edx, [esp + 0x30]
push ecx
push 0xffffffffffffffff
push edx
push str.Group
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x870]
mov dword [esp + 0x40], eax
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x410084
cmp dl, bl
je 0x410080
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x410084
add ecx, 2
add esi, 2
cmp dl, bl
jne 0x410060
xor ecx, ecx
jmp 0x410089
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x4100da
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x874]
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x4100bc
cmp dl, bl
je 0x4100b8
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x4100bc
add ecx, 2
add esi, 2
cmp dl, bl
jne 0x410098
xor ecx, ecx
jmp 0x4100c1
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x4100da
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x87c]
cmp eax, ecx
jne 0x4100da
xor ebp, ebp
mov dword [esp + 0x14], ebx
inc edi
cmp ebp, ebx
jne 0x40ff96
cmp dword [esp + 0x14], ebx
je 0x4101ce
cmp edi, ebx
jle 0x4100f2
dec edi
lea edx, [esp + 0x49]
push 0xa
push edx
push edi
call fcn.00479ed6
lea eax, [esp + 0x2c]
push 0xa
push eax
push edi
call fcn.00479ed6
lea ecx, [esp + 0x43]
push 0xa
push ecx
push edi
call fcn.00479ed6
lea edx, [esp + 0x5c]
push 0xa
push edx
push edi
call fcn.00479ed6
mov eax, dword [esp + 0x8b0]
mov ecx, dword [esp + 0x8a0]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x30
lea edx, [esp + 0x1c]
push eax
push ecx
push edx
push str.Group
call esi
mov eax, dword [esp + 0x880]
mov ecx, dword [esp + 0x874]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push str.Group
call esi
cmp dword [esp + 0x878], ebx
jne 0x410199
lea eax, [esp + 0x50]
push 0xa
push eax
push ebx
call fcn.00479ed6
mov ecx, dword [esp + 0x88c]
add esp, 0xc
lea edx, [esp + 0x50]
lea eax, [esp + 0x44]
push ecx
push edx
push eax
push str.Group
call esi
mov eax, dword [esp + 0x87c]
cmp eax, 0xffffffff
je 0x4101ce
lea ecx, [esp + 0x50]
push 0xa
push ecx
push eax
call fcn.00479f89
mov edx, dword [esp + 0x88c]
add esp, 0xc
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push edx
push eax
push ecx
push str.Group
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x868], 3
call fcn.0048f641
lea ecx, [esp + 0x10]
mov byte [esp + 0x868], 2
call fcn.0048f641
lea ecx, [esp + 0x870]
mov byte [esp + 0x868], 1
call fcn.0048f641
lea ecx, [esp + 0x874]
mov byte [esp + 0x868], bl
call fcn.0048f641
lea ecx, [esp + 0x880]
mov dword [esp + 0x868], 0xffffffff
call fcn.0048f641
mov ecx, dword [esp + 0x860]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x85c
ret