Function at 0x4170b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4de0ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x854
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x86c], ebx
mov eax, dword [str.state]
mov cx, word [0x51c894]
mov edx, dword [str.name]
mov dword [esp + 0x44], eax
mov al, byte [0x51c88c]
mov word [esp + 0x48], cx
mov ecx, dword [0x51c884]
mov byte [esp + 0x20], al
mov eax, dword [0x51c87c]
mov dword [esp + 0x1c], edx
mov edx, dword [str.download]
mov dword [esp + 0x28], ecx
mov cl, byte [0x51c880]
mov dword [esp + 0x38], eax
mov eax, dword [0x52251c]
mov dword [esp + 0x4a], ebx
mov dword [esp + 0x21], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edx
mov byte [esp + 0x3c], cl
mov dword [esp + 0x3d], ebx
xor edi, edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x86c], 4
lea edx, [esp + 0x20]
push 0xa
push edx
push edi
call fcn.004b0136
lea eax, [esp + 0x37]
push 0xa
push eax
push edi
call fcn.004b0136
mov ecx, dword [esp + 0x89c]
add esp, 0x18
lea edx, [esp + 0x64]
lea eax, [esp + 0x28]
push ecx
push 0x800
push edx
push ebx
push eax
push 0x51c870
call ebp
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x417294
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004c5910
mov edx, dword [esp + 0x884]
lea eax, [esp + 0x64]
push edx
push 0x800
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
push 0x51c870
call ebp
lea edx, [esp + 0x64]
lea ecx, [esp + 0x10]
push edx
call fcn.004c5910
lea eax, [esp + 0x3c]
push 0xa
push eax
push edi
call fcn.004b0136
mov ecx, dword [esp + 0x890]
add esp, 0xc
lea edx, [esp + 0x34]
push ecx
push 0xffffffffffffffff
push edx
push 0x51c870
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x874]
mov dword [esp + 0x50], eax
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x41723c
cmp dl, bl
je 0x417238
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x41723c
add ecx, 2
add esi, 2
cmp dl, bl
jne 0x417218
xor ecx, ecx
jmp 0x417241
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x417294
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x878]
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x417274
cmp dl, bl
je 0x417270
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x417274
add ecx, 2
add esi, 2
cmp dl, bl
jne 0x417250
xor ecx, ecx
jmp 0x417279
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x417294
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x880]
cmp eax, ecx
jne 0x417294
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x30]
inc edi
cmp eax, ebx
jne 0x41715c
cmp dword [esp + 0x14], ebx
je 0x41738c
cmp edi, ebx
jle 0x4172b0
dec edi
lea edx, [esp + 0x49]
push 0xa
push edx
push edi
call fcn.004b0136
lea eax, [esp + 0x2c]
push 0xa
push eax
push edi
call fcn.004b0136
lea ecx, [esp + 0x43]
push 0xa
push ecx
push edi
call fcn.004b0136
lea edx, [esp + 0x60]
push 0xa
push edx
push edi
call fcn.004b0136
mov eax, dword [esp + 0x8b4]
mov ecx, dword [esp + 0x8a4]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x30
lea edx, [esp + 0x1c]
push eax
push ecx
push edx
push 0x51c870
call esi
mov eax, dword [esp + 0x884]
mov ecx, dword [esp + 0x878]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push 0x51c870
call esi
cmp dword [esp + 0x87c], ebx
jne 0x417357
lea eax, [esp + 0x54]
push 0xa
push eax
push ebx
call fcn.004b0136
mov ecx, dword [esp + 0x890]
add esp, 0xc
lea edx, [esp + 0x54]
lea eax, [esp + 0x44]
push ecx
push edx
push eax
push 0x51c870
call esi
mov eax, dword [esp + 0x880]
cmp eax, 0xffffffff
je 0x41738c
lea ecx, [esp + 0x54]
push 0xa
push ecx
push eax
call fcn.004b01e9
mov edx, dword [esp + 0x890]
add esp, 0xc
lea eax, [esp + 0x54]
lea ecx, [esp + 0x34]
push edx
push eax
push ecx
push 0x51c870
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x86c], 3
call fcn.004c5787
lea ecx, [esp + 0x10]
mov byte [esp + 0x86c], 2
call fcn.004c5787
lea ecx, [esp + 0x874]
mov byte [esp + 0x86c], 1
call fcn.004c5787
lea ecx, [esp + 0x878]
mov byte [esp + 0x86c], bl
call fcn.004c5787
lea ecx, [esp + 0x884]
mov dword [esp + 0x86c], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0x864]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x860
ret