Function at 0x45d410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84c
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
je 0x45d607
mov edx, dword [str.state]
mov ax, word [0x51c894]
mov dword [ebp - 0x40], edx
mov edx, dword [0x51c884]
mov word [ebp - 0x3c], ax
mov eax, dword [str.download]
mov dword [ebp - 0x34], edx
mov edx, dword [0x51c87c]
mov dword [ebp - 0x50], eax
mov al, byte [0x51c880]
mov dword [ebp - 0x4c], edx
mov edx, dword [ecx + 0x5e4]
mov byte [ebp - 4], 1
mov dword [ebp - 0x3a], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x48], al
mov dword [ebp - 0x47], ebx
xor edi, edi
mov dword [ebp - 0x2c], edx
mov dword [ecx + 0x5e4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], ebx
je 0x45d5fb
lea eax, [ebp - 0x3b]
push 0xa
push eax
push edi
call fcn.004b0136
lea ecx, [ebp - 0x31]
push 0xa
push ecx
push edi
call fcn.004b0136
lea edx, [ebp - 0x48]
push 0xa
push edx
push edi
call fcn.004b0136
mov eax, dword [ebp + 8]
add esp, 0x24
lea ecx, [ebp - 0x40]
inc edi
push eax
push 1
push ecx
push 0x51c870
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
je 0x45d4a8
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x858]
push edx
push 0x800
push eax
lea ecx, [ebp - 0x34]
push ebx
push ecx
push 0x51c870
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x45d4a8
lea edx, [ebp - 0x858]
lea ecx, [ebp - 0x14]
push edx
call fcn.004c57f5
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov esi, 0x51c574
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x45d558
cmp cl, bl
je 0x45d554
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x45d558
add eax, 2
add esi, 2
cmp cl, bl
jne 0x45d534
xor eax, eax
jmp 0x45d55d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x45d6db
mov eax, dword [0x51e068]
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
jl 0x45d63c
cmp dword [ebp - 0x24], ebx
jne 0x45d63c
lea ecx, [ebp - 0x58]
push 0xa
push ecx
push eax
call fcn.004b0136
mov edx, dword [0x52251c]
add esp, 0xc
mov dword [ebp - 0x18], edx
mov eax, dword [0x52700c]
mov byte [ebp - 4], 3
cmp eax, ebx
push 0xefce
je 0x45d5b6
lea eax, [ebp - 0x18]
push eax
call fcn.00417b10
add esp, 8
jmp 0x45d5be
lea ecx, [ebp - 0x18]
call fcn.004c681c
lea ecx, [ebp - 0x58]
push ecx
push 0x51cd48
lea ecx, [ebp - 0x18]
call fcn.004bd420
mov edx, dword [ebp - 0x18]
push ebx
push 0x24
push edx
call fcn.00419540
add esp, 0xc
cmp eax, 7
jne 0x45d629
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5787
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c5787
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x5e4], edx
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004c5787
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 2
call fcn.004c5787
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
inc esi
push 1
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0047b690
cmp eax, ebx
jne 0x45d6db
push ebx
push ebx
push ebx
push 1
push ebx
mov ecx, esi
call fcn.00450380
mov esi, eax
cmp esi, ebx
je 0x45d6db
cmp dword [esi + 0xf8], ebx
je 0x45d6db
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45d6db
mov eax, dword [esi + 0xf8]
cmp eax, ebx
jne 0x45d692
xor eax, eax
jmp 0x45d695
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45d6db
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edx
push 0xffffffffffffffff
push eax
push 0x51c870
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
je 0x45d6c6
mov ecx, dword [esi + 0xf8]
push eax
call fcn.00429290
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0xf8]
call fcn.0042ca30
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c5787
jmp 0x45d4a8