Function at 0x1001f9b6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
and byte [ebp - 0x430], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x42f]
and byte [ebp - 0x534], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x533]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 8], 0
push 0
push dword [ebp + 8]
mov ebx, 0x104
stosb byte es:[edi], al
lea eax, [ebp - 0x430]
push ebx
push eax
mov ecx, esi
call fcn.1001e7a6
lea eax, [esi + 0x28f8]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x534]
push ebx
push eax
call fcn.10002f5f
and byte [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x13]
add esp, 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x14]
push 8
push eax
lea eax, [ebp - 0x534]
mov ecx, esi
push eax
call fcn.1001f7cd
test eax, eax
je 0x1001fc59
mov ax, word [esi + 0x99c]
test ax, ax
jbe 0x1001fa80
lea ecx, [esi + 0x59c]
movzx eax, ax
mov dx, word [ecx]
cmp dx, word [ebp + 8]
jne 0x1001fa7b
mov dword [ebp - 8], 1
inc ecx
inc ecx
dec eax
jne 0x1001fa6b
mov eax, dword [esi]
test byte [eax + 0x10], 1
jne 0x1001fbd2
and byte [ebp - 0x124], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sub.ahnupctl.dll_AhnUpCtl_IsEngineCode
cmp eax, 1
pop ecx
je 0x1001fb90
cmp dword [ebp - 8], 1
je 0x1001fb90
and byte [ebp - 0x228], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x227]
and byte [ebp - 0x32c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x32b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x32c]
push ebx
push eax
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 0x448]
push dword [ebp + 8]
call fcn.1001a899
lea eax, [ebp - 0x32c]
push str.bldinfo.ini
push eax
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.10002f5f
add esp, 0x10
xor eax, eax
push eax
push eax
push 3
push eax
push 1
lea eax, [ebp - 0x228]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1001fb6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push ebx
push eax
push 0x100583f4
push str.BuildNumber
push str.Build
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movzx eax, word [ebp + 8]
push dword [esi + eax*4 + 0x1fd8]
push dword [esi + eax*4 + 0x17d8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 8]
jmp 0x1001fbbf
cmp word [ebp + 8], 0
jne 0x1001fbd2
lea eax, [ebp - 0x124]
push ebx
push eax
mov ecx, esi
call fcn.1001ff13
push dword [esi + 0x1fd8]
lea eax, [ebp - 0x14]
push dword [esi + 0x17d8]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
lea ecx, [esi + 0x29110]
call fcn.100129ac
test eax, eax
je 0x1001fc59
and byte [ebp - 0x124], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
and byte [ebp - 0x32c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x32b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
mov ecx, esi
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.1001e7a6
lea eax, [esi + 0x27f4]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.10002f5f
lea eax, [ebp - 0x32c]
push eax
push 0
call dword [sym.imp.v3hunt.dll_V3Net_IsFileValid]
add esp, 0x18
test eax, eax
movzx eax, word [ebp + 8]
jne 0x1001fc62
push eax
push str._AhnUp_IsMatchCRC__warning_:___04x_ahn.ui_not_exist_or_bad_crc.
push 1
call fcn.1000b21a
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov dword [ebp - 8], eax
shl eax, 5
lea eax, [eax + esi + 0x2510a]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 8]
call fcn.1000473e
and byte [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1f]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
lea ecx, [esi + 0x29110]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.10012de7
push 1
pop edi
cmp eax, edi
jne 0x1001fc59
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100333c0
pop ecx
test eax, eax
pop ecx
jne 0x1001fc59
mov eax, dword [esi]
cmp dword [eax + 0x448], 4
jne 0x1001fde0
and dword [ebp - 4], 0
cmp word [ebp + 8], 4
je 0x1001fce1
cmp word [ebp + 8], 5
je 0x1001fce1
mov dword [ebp - 4], edi
and byte [ebp - 0x228], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x227]
cmp dword [ebp - 4], 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jge 0x1001fdc0
mov eax, dword [ebp - 4]
imul eax, eax, 0x104
lea edi, [eax + esi + 0x2d7c4]
lea eax, [ebp - 0x124]
push edi
push eax
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.10002f5f
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.100328cf
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1001fd4a
inc dword [ebp - 4]
add edi, ebx
cmp dword [ebp - 4], 2
jl 0x1001fd12
jmp 0x1001fdbc
lea eax, [ebp - 0x228]
lea ecx, [esi + 0xda0]
push eax
lea eax, [ebp - 0x32c]
push eax
call fcn.1000124b
mov edi, eax
test edi, edi
je 0x1001fd99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x104
push edi
lea eax, [eax + esi + 0x2d7c4]
push eax
push dword [ebp - 8]
push str._AhnUp_IsMatchPerPD__0x_04x_AhnTrustEngine_VerifyAhcFile_ahn.ui___s__Fail._ret__x___err__x_
push 1
call fcn.1000b21a
add esp, 0x18
jmp 0x1001fc59
mov eax, dword [ebp - 4]
imul eax, eax, 0x104
lea eax, [eax + esi + 0x2d7c4]
push eax
push dword [ebp - 8]
push str._AhnUp_IsMatchPerPD__0x_04x_AhnTrustEngine_VerifyAhcFile_ahn.ui___s__Success.
push 1
call fcn.1000b21a
add esp, 0x10
cmp dword [ebp - 4], 2
jne 0x1001fde0
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 8]
push str._AhnUp_IsMatchPerPD__0x_04x___Not_Exist___s_
push 1
call fcn.1000b21a
add esp, 0x10
jmp 0x1001fc59
push 1
pop eax
jmp 0x1001fc5b