Function at 0x5a2830
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e099a
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
call fcn.00403290
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00403290
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00403290
mov byte [ebp - 4], 2
mov word [ebp - 0xf4], 0
push 0xc6
push 0
lea eax, [ebp - 0xf2]
push eax
call fcn.00524800
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00403290
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00403290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf8]
push ecx
call fcn.0057a5e0
add esp, 4
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040ca60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf8]
call fcn.00403270
lea ecx, [ebp - 0x24]
call fcn.0043e040
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040ca60
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ca60
push str.ressrcchsuplive.svr0
lea ecx, [ebp - 0x1c]
call fcn.0046ff60
push 0
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call fcn.00527657
add esp, 8
test eax, eax
je 0x5a2999
push 0x627e30
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xfc]
push ecx
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040ca60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xfc]
call fcn.00403270
push str.updatekavindexkav.txt.old.txt
lea ecx, [ebp - 0x28]
call fcn.0046ff60
push 0
lea ecx, [ebp - 0x28]
call fcn.00493020
push eax
call fcn.00527657
add esp, 8
test eax, eax
je 0x5a2a09
push str.ressrcchskismain.ini
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ca60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x100]
call fcn.00403270
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
push 0x64
lea edx, [ebp - 0xf4]
push edx
push 0x627e5c
push 0x627ed0
push 0x627ee0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a2a3e
jmp 0x5a2b61
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040b1c0
lea ecx, [ebp - 0x14]
call fcn.0043e040
lea ecx, [ebp - 0x14]
call fcn.0040c900
push eax
push 2
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040e880
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x130]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ca60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x104]
call fcn.00403270
push 0x627ef0
push 0x627ef4
lea ecx, [ebp - 0x20]
call fcn.0049c3d0
push 0x627ef8
push 0x627efc
lea ecx, [ebp - 0x20]
call fcn.0049c3d0
lea ecx, [ebp - 0x28]
call fcn.00493020
push eax
push 0x64
lea ecx, [ebp - 0xf4]
push ecx
push 0x627f04
push 0x627f08
push 0x627f0c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a2af9
jmp 0x5a2b61
lea edx, [ebp - 0xf4]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040b1c0
push 6
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x14]
call fcn.0048a680
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x138]
push edx
lea ecx, [ebp - 0x20]
call fcn.00454f00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x108]
call fcn.00403270
lea ecx, [ebp - 0x20]
call fcn.00493020
push eax
call fcn.0052488b
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403270
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret