Function at 0x4057a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x511b14
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x484]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x494]
mov dword [esp + 0x14], ebp
xor edi, edi
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x4a0]
mov dword [esp + 0x494], edi
push eax
mov esi, 7
lea eax, [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edi
mov word [esp + 0x48], di
call fcn.00401610
mov byte [esp + 0x48c], 1
cmp dword [esp + 0x4ac], edi
jne 0x4058e1
push 0x206
lea ecx, [esp + 0x27e]
push edi
push ecx
mov word [esp + 0x284], di
call fcn.004f1960
add esp, 0xc
push 0x104
lea edx, [esp + 0x27c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jne 0x4058af
mov ebx, 8
cmp dword [esp + 0x50], ebx
jb 0x405882
mov eax, dword [esp + 0x3c]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x4b0], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
jb 0x4058a8
mov ecx, dword [esp + 0x49c]
push ecx
call fcn.004e7d7e
add esp, 4
xor al, al
jmp 0x405b01
lea eax, [esp + 0x278]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4058c0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x27c]
push edx
lea esi, [esp + 0x40]
call fcn.00407330
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x1c]
call fcn.0043b9f0
add esp, 4
push 0xffffffffffffffff
push edi
add ebp, 0x2d0
push eax
mov eax, ebp
mov byte [esp + 0x498], 2
call fcn.00401610
mov ebx, 8
mov byte [esp + 0x48c], 1
cmp dword [esp + 0x30], ebx
jb 0x40592b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004e7d7e
add esp, 4
push 0xd
push 0x51a640
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
call fcn.00407330
mov edx, esi
push edx
push ebp
lea ecx, [esp + 0x5c]
mov byte [esp + 0x494], 3
call fcn.0043b740
add esp, 8
mov byte [esp + 0x48c], 5
cmp dword [esp + 0x30], ebx
jb 0x40597f
mov eax, dword [esp + 0x1c]
push eax
call fcn.004e7d7e
add esp, 4
push 0x206
lea ecx, [esp + 0x76]
push edi
mov ebp, 7
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
mov word [esp + 0x7c], di
call fcn.004f1960
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp dword [esp + 0x6c], ebx
jae 0x4059b7
lea eax, [esp + 0x58]
push eax
push 0x104
lea edx, [esp + 0x78]
push edx
push 0x51a1d4
push 0x51a65c
push str.Uninstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4059e0
sub eax, edx
sar eax, 1
jne 0x405a55
cmp dword [esp + 0x6c], ebx
jb 0x405a04
mov eax, dword [esp + 0x58]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x50], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edi
mov word [esp + 0x58], di
jb 0x405a24
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x4b0], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
jb 0x4058a8
mov edx, dword [esp + 0x49c]
push edx
call fcn.004e7d7e
add esp, 4
xor al, al
jmp 0x405b01
cmp dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x58]
jae 0x405a63
lea eax, [esp + 0x58]
push eax
push edi
push str.channel
push str.Installed
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [esp + 0x14]
mov dword [esi + 0x3d4], eax
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405a86
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x74]
push eax
add esi, 0x298
call fcn.00407330
cmp dword [esp + 0x6c], ebx
jb 0x405ab9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x50], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edi
mov word [esp + 0x58], di
jb 0x405ad9
mov edx, dword [esp + 0x3c]
push edx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x4b0], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
jb 0x405aff
mov eax, dword [esp + 0x49c]
push eax
call fcn.004e7d7e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x484]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x47c
ret 0x20