Function at 0x10015e5e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
je 0x10016105
push dword [ebp + 8]
call fcn.10031620
test eax, eax
pop ecx
jbe 0x10016105
and byte [ebp - 0x104], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
mov esi, 0x104
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push esi
push eax
mov ecx, ebx
call fcn.1001e7a6
lea eax, [ebp - 0x104]
push str.patch
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10002f5f
lea eax, [ebp - 0x104]
push eax
call fcn.10002fbc
lea eax, [ebp - 0x104]
push str.ahnpatch.ui
lea edi, [ebx + 0x24804]
push eax
push esi
push edi
call fcn.10002f5f
push 0x420
lea eax, [ebp - 0xc30]
push 0
push eax
call fcn.10031550
mov eax, dword [ebx]
mov dword [ebp - 0x828], 3
add esp, 0x30
mov ecx, ebx
mov eax, dword [eax + 0x434]
mov dword [ebp - 0x81c], eax
push 0
lea eax, [ebp - 0xc30]
push 0
push eax
push edi
push dword [ebp + 8]
push edi
call fcn.1001e5ca
test eax, eax
jne 0x10016113
and byte [ebp - 0x208], al
push 0x40
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x24804]
push eax
lea eax, [ebp - 0x208]
push esi
push eax
push 0x100583f4
push str.path
push 0x1004f880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.10031620
test eax, eax
pop ecx
jbe 0x10016113
and byte [ebp - 0x30c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
push 0x1004f87c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push esi
push eax
call fcn.10002f5f
add esp, 0x10
lea eax, [ebp - 0x30c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.100165e3
cmp eax, 1
mov dword [ebp + 8], eax
je 0x10016100
and byte [ebp - 0x410], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x40f]
push str.user.dat
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100582d8
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.10002f5f
add esp, 0x10
lea esi, [ebx + 0x95]
lea eax, [ebp - 0x208]
mov ecx, ebx
push esi
push eax
call fcn.100207f0
lea eax, [ebp - 0x410]
lea edi, [ebx + 0x54]
push eax
push 0x20
push edi
push 0x100583f4
push esi
push str.CdnInfo
call fcn.1000df28
lea eax, [ebp - 0x208]
push eax
call fcn.10009e76
cmp eax, 1
pop ecx
jne 0x10016100
push esi
call fcn.10031620
test eax, eax
pop ecx
je 0x10016100
push edi
call fcn.10031620
test eax, eax
pop ecx
je 0x10016100
and byte [ebp - 0x810], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x80f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1000180e
lea eax, [ebx + 0x54]
push eax
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.10002a7c
mov eax, dword [ebx]
add esp, 0xc
mov eax, dword [eax + 0x24]
push esi
add eax, 0x988
push 0x800
push eax
call fcn.1000180e
lea eax, [ebp - 0x30c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.100165e3
push 1
mov dword [ebp + 8], eax
pop eax
cmp dword [ebp + 8], eax
jne 0x10016100
mov dword [ebx + 0x50], eax
mov ebx, dword [ebx + 4]
or byte [ebx + 0x42c], 0x80
mov eax, dword [ebp + 8]
jmp 0x10016115
push str._AhnUpDoIt2__Gradual_URL_Error._url_is_None.
push 1
call fcn.1000b21a
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4