Function at 0x40d736
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1ad4]
mov eax, 0x1ad4
call fcn.004a1280
push 0xffffffffffffffff
push 0x51050c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x1ad0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1adc]
mov dword [ebp - 0x1c], eax
call fcn.0047b9e0
xor ebx, ebx
cmp eax, ebx
je 0x40d791
mov al, 1
jmp 0x40dc97
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x18c8], ax
lea eax, [ebp + 0x18ca]
push ebx
push eax
call fcn.0049d740
xor eax, eax
push edi
mov word [ebp + 0x14b8], ax
lea eax, [ebp + 0x14ba]
push ebx
push eax
call fcn.0049d740
lea eax, [ebp + 0x14b8]
push eax
push str.SogouApkTool_
call fcn.0047abe5
add esp, 0x20
lea eax, [ebp + 0x14b8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp + 0x14b8]
push eax
mov esi, 0x104
lea eax, [ebp + 0x18c8]
push esi
push eax
call fcn.0049b0d6
push str.GuideSMT.ini
lea eax, [ebp + 0x18c8]
push esi
push eax
call fcn.0049bcab
add esp, 0x18
lea eax, [ebp + 0x18c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push edi
mov word [ebp + 0x16c0], ax
lea eax, [ebp + 0x16c2]
push ebx
push eax
call fcn.0049d740
lea eax, [ebp + 0x14b8]
push eax
lea eax, [ebp + 0x16c0]
push esi
push eax
call fcn.0049b0d6
push str.SMTITool.exe
lea eax, [ebp + 0x16c0]
push esi
push eax
call fcn.0049bcab
add esp, 0x24
call fcn.0041295e
push eax
lea ecx, [ebp + 0x38]
call fcn.00401685
push str.http:__config.zhushou.sogou.com_client_installclient_getinstallclient.html
lea ecx, [ebp + 0x54]
mov dword [ebp - 4], ebx
call fcn.00401685
push 0x538574
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 1
call fcn.00403850
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x54]
call fcn.004039ea
mov dword [ebp + 0xa4], 0xf
push ebx
lea ecx, [ebp + 0x8c]
call fcn.00401979
lea eax, [ebp + 0x8c]
push eax
mov byte [ebp - 4], 2
call fcn.0043850a
lea ecx, [ebp + 0x54]
mov dword [esp], 0x53857c
call fcn.00403850
cmp dword [ebp + 0xa4], 0x10
mov eax, dword [ebp + 0x90]
jae 0x40d8e9
lea eax, [ebp + 0x90]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0040accb
mov byte [ebp - 4], 3
push dword [eax]
lea ecx, [ebp + 0x54]
call fcn.00403850
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x13c], eax
je 0x40d921
push dword [ebp - 0x13c]
call fcn.0049b145
pop ecx
xor eax, eax
push edi
mov word [ebp + 0x10a8], ax
lea eax, [ebp + 0x10aa]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push esi
lea eax, [ebp + 0x10a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x10a8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401685
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 4
call fcn.0047b4b4
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0040184d
push 0x538584
lea ecx, [ebp + 0x54]
call fcn.00403850
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.004039ea
push ebx
sub esp, 0x1c
lea eax, [ebp + 0x18c8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401685
sub esp, 0x1c
mov byte [ebp - 4], 7
lea eax, [ebp + 0x54]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00403757
mov byte [ebp - 4], 6
call fcn.004099a2
add esp, 0x3c
cmp eax, ebx
jl 0x40dc6a
xor eax, eax
push 0xffe
mov word [ebp + 0xa8], ax
lea eax, [ebp + 0xaa]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
lea eax, [ebp + 0x18c8]
push eax
push 0x7ff
lea eax, [ebp + 0xa8]
push eax
mov esi, 0x537d6c
push esi
push 0x538be8
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push edi
mov word [ebp + 0x12b0], ax
lea eax, [ebp + 0x12b2]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
lea eax, [ebp + 0x18c8]
push eax
push 0x103
lea eax, [ebp + 0x12b0]
push eax
push esi
push 0x538c00
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x18c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0xa8]
push esi
push eax
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
je 0x40dc67
lea eax, [ebp + 0x12b0]
push esi
push eax
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
je 0x40dc67
lea eax, [ebp + 0x16c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40db07
lea eax, [ebp + 0x12b0]
push eax
lea ecx, [ebp + 0x70]
call fcn.00401685
lea eax, [ebp + 0x16c0]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 8
call fcn.00401685
lea ecx, [ebp + 0x70]
lea edi, [ebp]
mov byte [ebp - 4], 9
call fcn.00409ab2
neg eax
sbb al, al
xor esi, esi
push ebx
inc al
inc esi
push esi
mov ecx, edi
mov byte [ebp - 0xd], al
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 6
call fcn.0040184d
cmp byte [ebp - 0xd], bl
jne 0x40dc22
jmp 0x40db0a
xor esi, esi
inc esi
lea eax, [ebp + 0xa8]
push eax
lea ecx, [ebp + 0x70]
call fcn.00401685
push 0x538574
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 0xa
call fcn.00403850
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x70]
call fcn.004039ea
push 0x53857c
lea ecx, [ebp + 0x70]
call fcn.00403850
cmp dword [ebp + 0xa4], 0x10
mov eax, dword [ebp + 0x90]
jae 0x40db5b
lea eax, [ebp + 0x90]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0040accb
mov byte [ebp - 4], 0xb
push dword [eax]
lea ecx, [ebp + 0x70]
call fcn.00403850
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x13c], eax
je 0x40db93
push dword [ebp - 0x13c]
call fcn.0049b145
pop ecx
push 0x538584
lea ecx, [ebp + 0x70]
call fcn.00403850
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x70]
call fcn.004039ea
lea eax, [ebp + 0x16c0]
push eax
lea ecx, [ebp]
call fcn.00401685
push ebx
sub esp, 0x1c
mov byte [ebp - 4], 0xc
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00403757
sub esp, 0x1c
mov byte [ebp - 4], 0xd
lea eax, [ebp + 0x70]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00403757
mov byte [ebp - 4], 0xc
call fcn.004099a2
add esp, 0x3c
cmp eax, ebx
push ebx
lea ecx, [ebp]
push esi
jge 0x40dc0f
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.0040184d
jmp 0x40dc6a
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 6
call fcn.0040184d
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x16c0]
push eax
add ecx, 0x94
call fcn.00401829
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.004017de
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.0040184d
jmp 0x40d78a
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.004017de
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0x38]
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 + 0x1ad0]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x1ad4
leave
ret 4