Function at 0x406216
Capabilities:
Read .ini file

Disassembly:
push 0x428
mov eax, 0x44f09d
call fcn.00439dcc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1dc], eax
add eax, 0xac
push str.data_shoplink.ini
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.004071bb
add esp, 0xc
mov esi, 0x32000
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00416ada
mov edi, eax
pop ecx
mov dword [ebp - 0x1c4], edi
cmp edi, ebx
jne 0x40627f
xor esi, esi
mov ecx, dword [ebp - 0x1c8]
add ecx, 0xfffffff0
call fcn.0040a004
mov eax, esi
call fcn.00439e4f
ret 4
push esi
push ebx
push edi
call fcn.00439ec0
add esp, 0xc
push dword [ebp - 0x1c8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea eax, [ebp - 0x200]
push eax
call fcn.004076fa
mov byte [ebp - 4], 1
xor esi, esi
cmp byte [edi], 0
mov dword [ebp - 0x1c0], ebx
je 0x406345
mov eax, edi
push eax
lea ecx, [ebp - 0x6c]
call fcn.00407240
mov byte [ebp - 4], 2
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x4062d4
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00407240
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x8c]
push eax
lea edi, [ebp - 0x1d4]
lea ebx, [ebp - 0x200]
mov byte [ebp - 4], 3
call fcn.00407777
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.0040799a
mov eax, dword [ebp - 0x58]
inc dword [ebp - 0x1c0]
push ebx
push 1
lea ecx, [ebp - 0x6c]
lea esi, [esi + eax + 1]
mov byte [ebp - 4], 1
call fcn.0040799a
mov eax, dword [ebp - 0x1c4]
add eax, esi
cmp byte [eax], bl
jne 0x4062bb
push 0x3f
lea eax, [ebp - 0x4f]
push ebx
push eax
mov byte [ebp - 0x50], 0
call fcn.00439ec0
mov eax, dword [ebp - 0x1e8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x200]
add esp, 0xc
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1d0]
mov esi, dword [ebp - 0x1e8]
cmp eax, ebx
je 0x40638a
cmp eax, dword [ebp - 0x200]
je 0x40638f
call fcn.0043674b
cmp dword [ebp - 0x1cc], esi
je 0x406a98
lea esi, [ebp - 0x1d0]
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x4063b1
mov eax, dword [eax + 4]
jmp 0x4063b4
add eax, 4
push 0xf
lea ecx, [ebp - 0xa8]
push str.shop_tlruyi_com
push ecx
mov ecx, eax
call fcn.004060cd
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x94], ebx
jne 0x4063ef
push ebx
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.0040799a
jmp 0x406a88
lea eax, [ebp - 0x1b8]
push eax
call fcn.00403c17
mov byte [ebp - 4], 5
cmp dword [ebp - 0x90], 0x10
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], ebx
jae 0x40641a
lea eax, [ebp - 0xa4]
push dword [ebp - 0x94]
push eax
call fcn.004060b1
mov edi, dword [ebp - 0x1c8]
pop ecx
pop ecx
lea esi, [ebp - 0x1d0]
mov dword [ebp - 0xac], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x40644a
mov eax, dword [eax + 4]
jmp 0x40644d
add eax, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
mov edi, 0x32000
push edi
push dword [ebp - 0x1c4]
push 0x461e0f
push str.NOTICE
push eax
call ebx
lea esi, [ebp - 0x1d0]
call fcn.00407831
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1d8], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x406491
mov eax, dword [eax + 4]
jmp 0x406494
add eax, 4
push dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004060cd
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x1b8]
mov byte [ebp - 4], 6
call fcn.004078e5
xor esi, esi
push 0
inc esi
push esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.0040799a
cmp dword [ebp - 0x1a0], 0x10
mov eax, dword [ebp - 0x1b4]
jae 0x4064e8
lea eax, [ebp - 0x1b4]
push dword [ebp - 0x1a4]
push eax
call fcn.004060b1
add dword [ebp - 0xac], eax
pop ecx
lea eax, [ebp - 0x198]
pop ecx
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1d8], eax
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x50]
push str.DOWNLOADLINK_TEXT__d
push 0x40
push eax
call fcn.00438095
mov eax, dword [ebp - 0x1c8]
add esp, 0x10
lea esi, [ebp - 0x1d0]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x406549
mov eax, dword [eax + 4]
jmp 0x40654c
add eax, 4
push dword [ebp - 0x1bc]
lea ecx, [ebp - 0x50]
push edi
push dword [ebp - 0x1c4]
push 0x461e0f
push ecx
push eax
call ebx
lea esi, [ebp - 0x1d0]
call fcn.00407831
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x406589
mov eax, dword [eax + 4]
jmp 0x40658c
add eax, 4
push dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004060cd
add esp, 0xc
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x50]
push str.DOWNLOADLINK__d
push 0x40
push eax
mov byte [ebp - 4], 7
call fcn.00438095
mov eax, dword [ebp - 0x1c8]
add esp, 0x10
lea esi, [ebp - 0x1d0]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x4065e4
mov eax, dword [eax + 4]
jmp 0x4065e7
add eax, 4
push dword [ebp - 0x1bc]
lea ecx, [ebp - 0x50]
push edi
push dword [ebp - 0x1c4]
push 0x461e0f
push ecx
push eax
call ebx
lea esi, [ebp - 0x1d0]
call fcn.00407831
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x406624
mov eax, dword [eax + 4]
jmp 0x406627
add eax, 4
push dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004060cd
add esp, 0xc
xor esi, esi
mov byte [ebp - 4], 8
cmp dword [ebp - 0x58], esi
je 0x40670e
cmp dword [ebp - 0x74], esi
je 0x40670e
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x406667
lea eax, [ebp - 0x68]
push dword [ebp - 0x58]
push eax
call fcn.004060b1
add dword [ebp - 0xac], eax
cmp dword [ebp - 0x70], 0x10
mov eax, dword [ebp - 0x84]
pop ecx
pop ecx
jae 0x40668a
lea eax, [ebp - 0x84]
push dword [ebp - 0x74]
push eax
call fcn.004060b1
add dword [ebp - 0xac], eax
mov esi, dword [ebp - 0x1d8]
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
mov dword [esi - 4], 1
call fcn.004078e5
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x88]
push eax
lea ecx, [esi + 0x1c]
call fcn.004078e5
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.0040799a
push 0
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.0040799a
inc dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x1c0]
add esi, 0x3c
dec eax
mov dword [ebp - 0x1d8], esi
cmp eax, 1
jb 0x40650e
jmp 0x40672f
push esi
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.0040799a
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.0040799a
mov dword [ebp - 0x1c0], 1
lea ebx, [ebp - 0x15c]
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x50]
push str.BUYLINK_TEXT__d
push 0x40
push eax
call fcn.00438095
mov eax, dword [ebp - 0x1c8]
add esp, 0x10
lea esi, [ebp - 0x1d0]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x40677a
mov eax, dword [eax + 4]
jmp 0x40677d
add eax, 4
push dword [ebp - 0x1bc]
lea ecx, [ebp - 0x50]
push edi
push dword [ebp - 0x1c4]
push 0x461e0f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [ebp - 0x1d0]
call fcn.00407831
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x4067be
mov eax, dword [eax + 4]
jmp 0x4067c1
add eax, 4
push dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004060cd
add esp, 0xc
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x50]
push str.BUYLINK__d
push 0x40
push eax
mov byte [ebp - 4], 9
call fcn.00438095
mov eax, dword [ebp - 0x1c8]
add esp, 0x10
lea esi, [ebp - 0x1d0]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x40681c
mov eax, dword [eax + 4]
jmp 0x40681f
add eax, 4
push dword [ebp - 0x1bc]
lea ecx, [ebp - 0x50]
push edi
push dword [ebp - 0x1c4]
push 0x461e0f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [ebp - 0x1d0]
call fcn.00407831
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1bc], eax
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x406860
mov eax, dword [eax + 4]
jmp 0x406863
add eax, 4
push dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004060cd
add esp, 0xc
xor esi, esi
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x74], esi
je 0x406937
cmp dword [ebp - 0x58], esi
je 0x406937
cmp dword [ebp - 0x70], 0x10
mov eax, dword [ebp - 0x84]
jae 0x4068a6
lea eax, [ebp - 0x84]
push dword [ebp - 0x74]
push eax
call fcn.004060b1
add dword [ebp - 0xac], eax
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
pop ecx
pop ecx
jae 0x4068c3
lea eax, [ebp - 0x68]
push dword [ebp - 0x58]
push eax
call fcn.004060b1
add dword [ebp - 0xac], eax
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x88]
push eax
mov ecx, ebx
mov dword [ebx - 4], 2
call fcn.004078e5
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebx + 0x1c]
call fcn.004078e5
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 9
call fcn.0040799a
push esi
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.0040799a
inc dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x1c0]
add ebx, 0x3c
dec eax
cmp eax, 3
jb 0x40673f
jmp 0x406958
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 9
call fcn.0040799a
push esi
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.0040799a
mov ebx, dword [ebp - 0x1c8]
lea esi, [ebp - 0x1d0]
call fcn.00407831
cmp dword [eax + 0x18], 0x10
jb 0x406974
mov eax, dword [eax + 4]
jmp 0x406977
add eax, 4
push ebx
push edi
push dword [ebp - 0x1c4]
push 0x461e0f
push str.CHKSUM
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and dword [ebp - 0x1e0], 0
push 0x10
lea eax, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1c4]
call fcn.00438396
add esp, 0xc
cmp dword [ebp - 0xac], eax
jne 0x406a63
sub esp, 0x110
mov eax, esp
mov dword [ebp - 0x1bc], esp
push eax
lea edi, [ebp - 0x1b8]
call fcn.00406acb
cmp dword [ebp - 0x90], 0x10
mov eax, dword [ebp - 0xa4]
jae 0x4069e9
lea eax, [ebp - 0xa4]
push eax
lea esi, [ebp - 0x434]
call fcn.004096d1
add esp, 0x114
mov esi, eax
mov byte [ebp - 4], 0xb
push dword [esi]
lea ecx, [ebp - 0x320]
call fcn.00409a22
lea eax, [ebp - 0x31c]
lea edi, [esi + 4]
push eax
mov byte [ebp - 4], 0xc
call fcn.00406acb
lea eax, [ebp - 0x320]
push eax
mov eax, dword [ebp - 0x1dc]
add eax, 0x158
push eax
lea edi, [ebp - 0x20c]
mov byte [ebp - 4], 0xd
call fcn.004072b4
lea eax, [ebp - 0x320]
push eax
mov byte [ebp - 4], 0xb
call fcn.00406b5c
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 4], 5
call fcn.00403c65
lea eax, [ebp - 0x1b8]
push eax
mov byte [ebp - 4], 4
call fcn.00403c65
push 0
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.0040799a
xor ebx, ebx
lea esi, [ebp - 0x1d0]
call fcn.0040817a
jmp 0x406372
push dword [ebp - 0x1c4]
call fcn.00416ae5
pop ecx
lea eax, [ebp - 0x200]
push eax
mov byte [ebp - 4], 0
call fcn.0040774b
xor esi, esi
inc esi
jmp 0x406267