Function at 0x45cf50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4e3dce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x858
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0x878]
mov dword [esp + 0x870], 0
test ebx, ebx
je 0x45d3cf
mov eax, dword [ebx + 4]
push 0
push eax
call fcn.004a3a40
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 8
push 0x400
push 0
push ecx
call esi
test eax, eax
je 0x45cfc5
mov edx, dword [ebx + 4]
push 0x400
push 0
push edx
call esi
test eax, eax
jne 0x45cfb4
mov eax, dword [0x52251c]
mov dword [esp + 0x14], eax
mov eax, dword [0x52700c]
mov byte [esp + 0x870], 1
test eax, eax
push 0xef75
lea ecx, [esp + 0x18]
je 0x45cff3
push ecx
call fcn.00417b10
add esp, 8
jmp 0x45cff8
call fcn.004c681c
push 0x1c
call fcn.004c5dbe
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x870], 2
je 0x45d01d
mov ecx, eax
call fcn.004832a0
mov esi, eax
jmp 0x45d01f
xor esi, esi
add edi, 0x1248
mov dword [esi + 0xc], 0x45
mov dword [esi + 8], edi
mov edx, dword [esp + 0x14]
push esi
push edx
mov byte [esp + 0x878], 1
call fcn.00483320
mov ebp, dword [esp + 0x888]
mov ecx, dword [ebx + 4]
add esp, 8
lea eax, [ebp + 0x6100]
push esi
push eax
push 0x100
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x52700c]
push 0xef76
test eax, eax
je 0x45d080
lea edx, [esp + 0x18]
push edx
call fcn.00417b10
add esp, 8
jmp 0x45d089
lea ecx, [esp + 0x18]
call fcn.004c681c
push 0x1c
call fcn.004c5dbe
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x870], 3
je 0x45d0ae
mov ecx, eax
call fcn.004832a0
mov esi, eax
jmp 0x45d0b0
xor esi, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x46
mov eax, dword [esp + 0x14]
push esi
push eax
mov byte [esp + 0x878], 1
call fcn.00483320
mov ecx, dword [ebx + 4]
add esp, 8
add ebp, 0x6000
push esi
push ebp
push 0x100
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [esp + 0x24]
push ebx
call fcn.00468b20
lea edx, [esp + 0x87c]
lea eax, [esp + 0x18]
push edx
push 0x527034
push eax
call fcn.004c59b6
mov ecx, dword [str.state]
mov dx, word [0x51c894]
mov eax, dword [str.name]
mov dword [esp + 0x40], ecx
mov cl, byte [0x51c88c]
mov word [esp + 0x44], dx
mov edx, dword [0x51c884]
mov dword [esp + 0x2c], eax
mov eax, dword [str.download]
mov byte [esp + 0x30], cl
mov ecx, dword [0x51c87c]
mov dword [esp + 0x4c], edx
mov dl, byte [0x51c880]
mov dword [esp + 0x58], eax
mov eax, dword [0x52251c]
xor ebp, ebp
mov dword [esp + 0x46], ebp
mov dword [esp + 0x31], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x60], dl
mov dword [esp + 0x61], ebp
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x870], 6
lea eax, [esp + 0x45]
push 0xa
push eax
push edi
call fcn.004b0136
lea ecx, [esp + 0x3c]
push 0xa
push ecx
push edi
call fcn.004b0136
lea edx, [esp + 0x67]
push 0xa
push edx
push edi
call fcn.004b0136
lea eax, [esp + 0x84]
push 0xa
push eax
push edi
call fcn.004b0136
mov ecx, dword [esp + 0x48]
add esp, 0x30
lea edx, [esp + 0x40]
push ecx
push 1
push edx
push 0x51c870
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea ecx, [esp + 0x6c]
push 0x800
push ecx
lea edx, [esp + 0x58]
push ebp
push edx
push 0x51c870
call esi
cmp eax, ebp
mov dword [esp + 0x28], eax
je 0x45d36e
lea eax, [esp + 0x68]
lea ecx, [esp + 0x20]
push eax
call fcn.004c5910
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x68]
push ecx
push 0x800
push edx
lea eax, [esp + 0x38]
push ebp
push eax
push 0x51c870
call esi
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x20]
call fcn.004c5910
lea edx, [esp + 0x3c]
push 2
push edx
lea ecx, [esp + 0x24]
call fcn.004bd709
mov eax, dword [eax]
mov esi, 0x51c574
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x45d277
test cl, cl
je 0x45d273
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x45d277
add eax, 2
add esi, 2
test cl, cl
jne 0x45d253
xor eax, eax
jmp 0x45d27c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x3c]
sete byte [esp + 0x13]
call fcn.004c5787
mov al, byte [esp + 0x13]
test al, al
je 0x45d2a3
mov ecx, dword [esp + 0x24]
push ebx
call fcn.00468b20
jmp 0x45d35d
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.0047b5e0
push 0x1c
call fcn.004c5dbe
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
mov byte [esp + 0x870], 7
je 0x45d2d8
mov ecx, eax
call fcn.004832a0
mov esi, eax
jmp 0x45d2da
xor esi, esi
mov ecx, dword [esp + 0x38]
push 1
push ecx
mov dword [esi + 4], ecx
lea edx, [esp + 0x28]
add ebp, 0x374
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
mov byte [esp + 0x87c], 6
mov dword [esi + 8], ebp
call fcn.004c54fc
call fcn.0041b8e0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.00483320
mov ecx, dword [esp + 0x30]
push esi
push ecx
call fcn.004833f0
mov edx, dword [esp + 0x30]
add esp, 0x18
lea eax, [esp + 0x58]
push edx
push 0xffffffffffffffff
push eax
push 0x51c870
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x18], eax
mov ecx, dword [0x52730c]
mov edx, dword [ebx + 4]
push esi
lea eax, [ecx + 0x6600]
push eax
push 0x100
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x52730c]
inc eax
xor ebp, ebp
mov dword [0x52730c], eax
mov eax, dword [esp + 0x28]
inc edi
cmp eax, ebp
jne 0x45d181
test byte [0x527940], 4
jne 0x45d38b
mov ecx, dword [esp + 0x24]
push ebp
push ebx
call fcn.0044e3c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x870], 5
call fcn.004c5787
lea ecx, [esp + 0x1c]
mov byte [esp + 0x870], 4
call fcn.004c5787
lea ecx, [esp + 0x18]
mov byte [esp + 0x870], 1
call fcn.004c5787
lea ecx, [esp + 0x14]
mov byte [esp + 0x870], 0
call fcn.004c5787
lea ecx, [esp + 0x87c]
mov dword [esp + 0x870], 0xffffffff
call fcn.004c5787
mov ecx, dword [esp + 0x868]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x864
ret 0xc