Function at 0x40cba4
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0xa74
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0xa74], eax
push 0x48
mov eax, 0x51057f
call fcn.0049dfed
xor eax, eax
push 0x1fe
mov word [ebp + 0x874], ax
xor ebx, ebx
lea eax, [ebp + 0x876]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x10], edi
call fcn.0049d740
push 0x12e
lea esi, [ebp + 0x874]
call fcn.0041721b
add esp, 0x10
mov eax, esi
push eax
lea ecx, [ebp]
call fcn.00401685
mov esi, 0x535d58
push esi
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.00403d14
test eax, eax
je 0x40d083
push 0x537d64
lea ecx, [ebp]
call fcn.00403d14
test eax, eax
je 0x40d083
lea eax, [ebp]
push eax
lea eax, [ebp - 0x38]
push str.http:__api.app.i.sogou.com_global_appdetailini_downid
push eax
call fcn.004120ff
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004019f3
push ebx
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.0040184d
lea eax, [edi + 0x40]
push str.Apks_
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x38]
push eax
call fcn.00409dbb
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40cc91
lea eax, [ebp + 0x3c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp + 0x874]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00409dbb
push str..ini
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.00409dbb
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 4
call fcn.004019f3
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x38]
call fcn.0040184d
push ebx
push edi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0040184d
push edi
sub esp, 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00403757
sub esp, 0x1c
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 5
call fcn.00403757
mov byte [ebp - 4], 2
call fcn.004099a2
add esp, 0x3c
cmp eax, ebx
jge 0x40cd36
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.0040184d
push ebx
push edi
jmp 0x40d098
xor eax, eax
push 0x206
mov word [ebp + 0x66c], ax
lea eax, [ebp + 0x66e]
push ebx
push eax
call fcn.0049d740
mov eax, dword [ebp + 0x3c]
add esp, 0xc
cmp dword [ebp + 0x50], 8
jae 0x40cd60
lea eax, [ebp + 0x3c]
push eax
push 0x104
lea eax, [ebp + 0x66c]
push eax
push esi
push str.name
mov edi, str.AppInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, esi
lea eax, [ebp + 0x66c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cdad
cmp dx, bx
je 0x40cda9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cdad
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40cd87
xor eax, eax
jmp 0x40cdb2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40cdcf
push 0x5388e0
lea eax, [ebp + 0x66c]
push 0x104
push eax
call fcn.0049b0d6
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp + 0x464], ax
lea eax, [ebp + 0x466]
push ebx
push eax
call fcn.0049d740
mov eax, dword [ebp + 0x3c]
add esp, 0xc
cmp dword [ebp + 0x50], 8
jae 0x40cdf9
lea eax, [ebp + 0x3c]
push eax
push 0x104
lea eax, [ebp + 0x464]
push eax
push esi
push str.versionname
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, esi
lea eax, [ebp + 0x464]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ce41
cmp dx, bx
je 0x40ce3d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ce41
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40ce1b
xor eax, eax
jmp 0x40ce46
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40ce63
push 0x538908
lea eax, [ebp + 0x464]
push 0x104
push eax
call fcn.0049b0d6
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp + 0x25c], ax
lea eax, [ebp + 0x25e]
push ebx
push eax
call fcn.0049d740
mov eax, dword [ebp + 0x3c]
add esp, 0xc
cmp dword [ebp + 0x50], 8
jae 0x40ce8d
lea eax, [ebp + 0x3c]
push eax
push ebx
push str.bytesize
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
jne 0x40ceba
push 0x538928
lea eax, [ebp + 0x25c]
push 0x104
push eax
call fcn.0049b0d6
add esp, 0xc
jmp 0x40ceeb
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
test eax, eax
jge 0x40ceca
fadd qword [0x53ca68]
fmul qword [0x53cac0]
push ecx
push ecx
lea eax, [ebp + 0x25c]
fstp qword [esp]
push str._.2fM
push 0x40
push eax
call fcn.0049c53d
add esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc4], ebx
jne 0x40cf7d
xor eax, eax
push 0x206
mov word [ebp + 0x54], ax
lea eax, [ebp + 0x56]
push ebx
push eax
call fcn.0049d740
mov eax, dword [ebp + 0x3c]
add esp, 0xc
cmp dword [ebp + 0x50], 8
jae 0x40cf1e
lea eax, [ebp + 0x3c]
push eax
push 0x104
lea eax, [ebp + 0x54]
push eax
push esi
push str.packagemd5
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x54]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x40cf5e
cmp cx, bx
je 0x40cf5a
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x40cf5e
add eax, 4
add esi, 4
cmp cx, bx
jne 0x40cf38
xor eax, eax
jmp 0x40cf63
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d076
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x54]
push eax
add ecx, 0xb0
call fcn.00401829
push str.TempApkIcons_
push dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
call fcn.00409dbb
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40cfa1
lea eax, [ebp + 0x20]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp + 0x874]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00409dbb
push 0x537d70
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 7
call fcn.00409dbb
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 8
call fcn.004019f3
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x54]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0040184d
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40d00a
lea eax, [ebp + 0x20]
push eax
mov ecx, str.MAINPNG
call fcn.00417417
pop ecx
test eax, eax
jne 0x40d027
push 0x538968
lea ecx, [ebp + 0x1c]
call fcn.00401829
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40d033
lea eax, [ebp + 0x20]
lea ecx, [ebp + 0x25c]
push ecx
lea ecx, [ebp + 0x464]
push ecx
lea ecx, [ebp + 0x66c]
push ecx
push eax
call fcn.004016b1
push eax
call fcn.00415abc
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp]
call fcn.0040184d
mov al, 1
jmp 0x40d0a2
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.0040184d
jmp 0x40d095
push ebx
push 0x538810
push 0x538818
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa74]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0xa78
leave
ret