Function at 0x422bc0
Capabilities:
Delete directory
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17cc
call fcn.0048fa50
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x17cc], esi
mov dword [ebp - 0x17bc], ebx
call fcn.00421670
mov al, byte [eax + 4]
cmp al, bl
je 0x422c00
mov dword [ebp - 0x17bc], 1
call fcn.00421670
mov al, byte [eax + 5]
cmp al, bl
je 0x422c13
or dword [ebp - 0x17bc], 2
call fcn.00421670
cmp byte [eax + 6], bl
je 0x422c24
or dword [ebp - 0x17bc], 4
mov dword [esi + 8], ebx
mov dword [ebp - 0x17c4], ebx
call fcn.00421670
mov edi, eax
mov ecx, dword [edi + 0x98]
sub ecx, dword [edi + 0x94]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x17c8], edi
jne 0x422c62
mov dword [esi + 8], 0x64
jmp 0x422c71
mov eax, 0x64
xor edx, edx
div ecx
mov dword [ebp - 0x17c4], eax
push 0x206
lea ecx, [ebp - 0x26e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x270], ax
call fcn.0048f070
add esp, 0xc
lea edx, [ebp - 0x270]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x270]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422cb0
sub eax, edx
sar eax, 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, 0x104
push str.all_d
sub eax, esi
push eax
lea ecx, [ebp + esi*2 - 0x270]
push ecx
call fcn.0048f18c
add esp, 0x10
xor edx, edx
lea eax, [ebp - 0x270]
mov dword [ebp - 0x16b0], 7
mov dword [ebp - 0x16b4], ebx
mov word [ebp - 0x16c4], dx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x422d07
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x16c4]
call fcn.004110e0
push 1
push 0x4b1930
lea ecx, [ebp - 0x16c4]
call fcn.004111d0
push 0xf
push 0x4b19ac
lea ecx, [ebp - 0x16c4]
call fcn.004111d0
mov esi, dword [edi + 0x94]
cmp esi, dword [edi + 0x98]
je 0x42301a
nop
mov ecx, dword [ebp - 0x17c4]
mov eax, dword [ebp - 0x17cc]
add dword [eax + 8], ecx
lea ecx, [ebp - 0x17b8]
call fcn.00414920
call fcn.00421670
add eax, 8
cmp dword [eax + 0x14], 8
jb 0x422d8a
mov eax, dword [eax]
mov edx, dword [ebp - 0x17bc]
mov ecx, dword [esi + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x20]
push eax
push ecx
lea ecx, [ebp - 0x17b8]
call fcn.004184a0
mov edi, eax
mov eax, dword [esi + 0x1c]
push eax
call fcn.0048e22f
add esp, 4
cmp edi, 2
jne 0x422dc3
call fcn.00421670
mov byte [eax + 7], 1
jmp 0x422dcb
cmp edi, ebx
jne 0x423063
mov edx, dword [esi + 0x10]
push 8
push str.platform
push edx
push ebx
mov ecx, esi
call fcn.004145e0
test eax, eax
je 0x422dfd
mov eax, dword [esi + 0x10]
push 7
push 0x4b2128
push eax
push ebx
mov ecx, esi
call fcn.004145e0
test eax, eax
jne 0x422ffa
call fcn.00421670
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
jb 0x422e0d
mov edx, dword [edx]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x1678], 7
mov dword [ebp - 0x167c], ebx
mov word [ebp - 0x168c], cx
lea edi, [eax + 2]
jmp 0x422e30
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422e30
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x168c]
call fcn.004110e0
push 1
push 0x4b1930
lea ecx, [ebp - 0x168c]
call fcn.004111d0
cmp dword [esi + 0x14], 8
jb 0x422e68
mov edx, dword [esi]
jmp 0x422e6a
mov edx, esi
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422e70
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x168c]
call fcn.004111d0
push 0x10
push 0x4b4a9c
lea ecx, [ebp - 0x168c]
call fcn.004111d0
push ebx
push 0x4c72f7
lea ecx, [ebp - 0x16e0]
mov dword [ebp - 0x16cc], 0xf
mov dword [ebp - 0x16d0], ebx
mov byte [ebp - 0x16e0], bl
call fcn.00404620
push 1
call fcn.0048eae1
add esp, 4
cmp eax, ebx
je 0x422ede
mov ecx, eax
call fcn.0040c600
mov edi, eax
jmp 0x422ee0
xor edi, edi
lea edx, [ebp - 0x16e0]
push edx
sub esp, 0x1c
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x168c]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00410fe0
lea eax, [ebp - 0x1760]
push eax
mov ecx, edi
call fcn.00425520
cmp dword [ebp - 0x174c], 0x10
jb 0x422f30
mov ecx, dword [ebp - 0x1760]
push ecx
call fcn.0048e224
add esp, 4
cmp dword [ebp - 0x16cc], 0x10
mov edi, dword [ebp - 0x16e0]
jae 0x422f45
lea edi, [ebp - 0x16e0]
call fcn.00421670
add eax, 0xc0
cmp dword [eax + 0x14], 0x10
jb 0x422f57
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push str.Market
push str.PlayApp
call edi
cmp dword [ebp - 0x16cc], 0x10
jb 0x422f82
mov edx, dword [ebp - 0x16e0]
mov dword [ebp - 0x17c0], edx
jmp 0x422f8e
lea eax, [ebp - 0x16e0]
mov dword [ebp - 0x17c0], eax
call fcn.00421670
add eax, 0xdc
cmp dword [eax + 0x14], 0x10
jb 0x422fa0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x17c0]
push ecx
push eax
push str.SubMarket
push str.PlayApp
call edi
cmp dword [ebp - 0x16cc], 0x10
jb 0x422fcc
mov edx, dword [ebp - 0x16e0]
push edx
call fcn.0048e224
add esp, 4
cmp dword [ebp - 0x1678], 8
mov dword [ebp - 0x16cc], 0xf
mov dword [ebp - 0x16d0], ebx
mov byte [ebp - 0x16e0], bl
jb 0x422ffa
mov eax, dword [ebp - 0x168c]
push eax
call fcn.0048e224
add esp, 4
lea ecx, [ebp - 0x17b8]
call fcn.00412db0
mov ecx, dword [ebp - 0x17c8]
add esi, 0x28
cmp esi, dword [ecx + 0x98]
jne 0x422d60
mov eax, dword [ebp - 0x16c4]
mov edi, 8
cmp dword [ebp - 0x16b0], edi
jae 0x423033
lea eax, [ebp - 0x16c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x104
call fcn.0048eae1
add esp, 4
cmp eax, ebx
je 0x4230c2
mov ecx, eax
call fcn.00424db0
mov esi, eax
jmp 0x4230c4
cmp dword [ebp - 0x16b0], 8
mov eax, dword [ebp - 0x16c4]
jae 0x423078
lea eax, [ebp - 0x16c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x17b8]
call fcn.00412db0
cmp dword [ebp - 0x16b0], 8
jb 0x4230af
mov eax, dword [ebp - 0x16c4]
push eax
call fcn.0048e224
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
xor esi, esi
push 1
call fcn.0048eae1
add esp, 4
cmp eax, ebx
je 0x4230e1
mov ecx, eax
call fcn.0040c600
mov dword [ebp - 0x17bc], eax
jmp 0x4230e7
mov dword [ebp - 0x17bc], ebx
push 0x63
lea edx, [ebp - 0x67]
push ebx
push edx
mov dword [ebp - 0x16e8], 0xf
mov dword [ebp - 0x16ec], ebx
mov byte [ebp - 0x16fc], bl
mov byte [ebp - 0x68], bl
call fcn.0048f070
add esp, 0xc
call fcn.00421670
cmp dword [eax + 0x1c], edi
lea ecx, [eax + 8]
jb 0x42311e
mov ecx, dword [ecx]
xor eax, eax
mov word [ebp - 0x1744], ax
mov eax, ecx
mov dword [ebp - 0x1730], 7
mov dword [ebp - 0x1734], ebx
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x423140
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x1744]
call fcn.004110e0
push ebx
push 0x4c72f7
lea ecx, [ebp - 0x16a8]
mov dword [ebp - 0x1694], 0xf
mov dword [ebp - 0x1698], ebx
mov byte [ebp - 0x16a8], bl
call fcn.00404620
lea ecx, [ebp - 0x16a8]
push ecx
sub esp, 0x1c
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1744]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00410fe0
lea ecx, [ebp - 0x1760]
push ecx
mov ecx, dword [ebp - 0x17bc]
call fcn.00425520
mov edi, 0x10
cmp dword [ebp - 0x174c], edi
jb 0x4231db
mov edx, dword [ebp - 0x1760]
push edx
call fcn.0048e224
add esp, 4
push 1
push 0x4b1850
lea ecx, [ebp - 0x16a8]
call fcn.00404500
push 7
push str.smromv2
lea ecx, [ebp - 0x16a8]
call fcn.00404500
push edi
push str.ParamConfig.ini
lea ecx, [ebp - 0x16a8]
call fcn.00404500
mov eax, dword [ebp - 0x16a8]
cmp dword [ebp - 0x1694], edi
jae 0x423224
lea eax, [ebp - 0x16a8]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push 0x4c72f7
push str.Version
push str.PlayApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1678], 0xf
mov dword [ebp - 0x167c], ebx
mov byte [ebp - 0x168c], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x423260
sub eax, edi
push eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x168c]
call fcn.00404620
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x168c]
push edx
lea ecx, [esi + 0x40]
call fcn.00403610
cmp dword [ebp - 0x1678], 0x10
jb 0x4232a3
mov eax, dword [ebp - 0x168c]
push eax
call fcn.0048e224
add esp, 4
lea ecx, [ebp - 0x16fc]
push ecx
call fcn.00411370
add esp, 4
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x16fc]
push edx
lea ecx, [ebp - 0x168c]
mov dword [ebp - 0x1678], 0xf
mov dword [ebp - 0x167c], ebx
mov byte [ebp - 0x168c], bl
call fcn.00403610
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x168c]
push eax
lea ecx, [esi + 0x5c]
call fcn.00403610
mov edi, 0x10
cmp dword [ebp - 0x1678], edi
jb 0x42330b
mov ecx, dword [ebp - 0x168c]
push ecx
call fcn.0048e224
add esp, 4
lea edx, [ebp - 0x170c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x3ff
lea eax, [ebp - 0x66f]
push ebx
push eax
mov byte [ebp - 0x670], bl
call fcn.0048f070
movzx ecx, word [ebp - 0x1700]
movzx edx, word [ebp - 0x1702]
movzx eax, word [ebp - 0x1704]
push ecx
movzx ecx, word [ebp - 0x1706]
push edx
movzx edx, word [ebp - 0x170a]
push eax
movzx eax, word [ebp - 0x170c]
push ecx
push edx
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea ecx, [ebp - 0x670]
push 0x400
push ecx
call fcn.0048f16e
lea eax, [ebp - 0x670]
add esp, 0x30
mov dword [ebp - 0x1678], 0xf
mov dword [ebp - 0x167c], ebx
mov byte [ebp - 0x168c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x423398
sub eax, edx
push eax
lea edx, [ebp - 0x670]
push edx
lea ecx, [ebp - 0x168c]
call fcn.00404620
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x168c]
push eax
lea ecx, [esi + 0x78]
call fcn.00403610
cmp dword [ebp - 0x1678], edi
jb 0x4233dd
mov ecx, dword [ebp - 0x168c]
push ecx
call fcn.0048e224
add esp, 4
call fcn.00421670
push 0xffffffffffffffff
push ebx
add eax, 0xa4
push eax
lea ecx, [ebp - 0x1728]
mov dword [ebp - 0x1714], 0xf
mov dword [ebp - 0x1718], ebx
mov byte [ebp - 0x1728], bl
call fcn.00403610
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x1728]
push edx
lea ecx, [ebp - 0x168c]
mov dword [ebp - 0x1678], 0xf
mov dword [ebp - 0x167c], ebx
mov byte [ebp - 0x168c], bl
call fcn.00403610
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x168c]
push eax
lea ecx, [esi + 0x94]
call fcn.00403610
cmp dword [ebp - 0x1678], edi
jb 0x423463
mov ecx, dword [ebp - 0x168c]
push ecx
call fcn.0048e224
add esp, 4
push 0x64
lea edx, [ebp - 0x68]
push ebx
push edx
call fcn.0048f070
mov eax, dword [ebp - 0x16a8]
add esp, 0xc
cmp dword [ebp - 0x1694], edi
jae 0x423486
lea eax, [ebp - 0x16a8]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push 0x4c72f7
push str.Market
push str.PlayApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1678], 0xf
mov dword [ebp - 0x167c], ebx
mov byte [ebp - 0x168c], bl
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4234c0
sub eax, edi
push eax
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x168c]
call fcn.00404620
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x168c]
push edx
lea ecx, [esi + 0xb0]
call fcn.00403610
cmp dword [ebp - 0x1678], 0x10
jb 0x423506
mov eax, dword [ebp - 0x168c]
push eax
call fcn.0048e224
add esp, 4
push 0x64
lea ecx, [ebp - 0x68]
push ebx
push ecx
call fcn.0048f070
mov eax, dword [ebp - 0x16a8]
add esp, 0xc
cmp dword [ebp - 0x1694], 0x10
jae 0x42352a
lea eax, [ebp - 0x16a8]
push eax
push 0x64
lea edx, [ebp - 0x68]
push edx
push 0x4c72f7
push str.PlayCode
push str.PlayApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1678], 0xf
mov dword [ebp - 0x167c], ebx
mov byte [ebp - 0x168c], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x423562
sub eax, edi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x168c]
call fcn.00404620
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x168c]
push ecx
lea ecx, [esi + 0xcc]
call fcn.00403610
mov edi, 0x10
cmp dword [ebp - 0x1678], edi
jb 0x4235ac
mov edx, dword [ebp - 0x168c]
push edx
call fcn.0048e224
add esp, 4
push 0xa
push str.successful
lea ecx, [ebp - 0x16fc]
call fcn.00404620
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x16fc]
push eax
lea ecx, [ebp - 0x168c]
mov dword [ebp - 0x1678], 0xf
mov dword [ebp - 0x167c], ebx
mov byte [ebp - 0x168c], bl
call fcn.00403610
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x168c]
push ecx
lea ecx, [esi + 0xe8]
call fcn.00403610
cmp dword [ebp - 0x1678], edi
jb 0x423615
mov edx, dword [ebp - 0x168c]
push edx
call fcn.0048e224
add esp, 4
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x16fc]
push ecx
mov ecx, esi
call edx
push 0xfff
lea eax, [ebp - 0x166f]
push ebx
push eax
mov byte [ebp - 0x1670], bl
call fcn.0048f070
add esp, 0xc
push 0x1000
lea ecx, [ebp - 0x1670]
push ecx
sub esp, 0x1c
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x16fc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00403610
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
sub esp, 0x1c
push esp
mov ecx, esi
call edx
mov ecx, dword [ebp - 0x17bc]
call fcn.004253b0
sub esp, 0x1c
mov edi, esp
lea eax, [ebp - 0x1670]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4236a0
sub eax, ecx
push eax
lea eax, [ebp - 0x1670]
push eax
mov ecx, edi
call fcn.00404620
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 1
mov ecx, esi
call eax
cmp dword [ebp - 0x17bc], ebx
je 0x4236ea
mov esi, dword [ebp - 0x17bc]
mov ecx, esi
call sym.SMAllSetup.exe_public_virtual:_void___thiscall_DuiLib::WindowImplBase::InitWindow_void_
push esi
call fcn.0048e224
add esp, 4
mov edi, 0x10
cmp dword [ebp - 0x1714], edi
jb 0x423706
mov ecx, dword [ebp - 0x1728]
push ecx
call fcn.0048e224
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x1714], esi
mov dword [ebp - 0x1718], ebx
mov byte [ebp - 0x1728], bl
cmp dword [ebp - 0x1694], edi
jb 0x423734
mov edx, dword [ebp - 0x16a8]
push edx
call fcn.0048e224
add esp, 4
mov edi, 8
mov dword [ebp - 0x1694], esi
mov dword [ebp - 0x1698], ebx
mov byte [ebp - 0x16a8], bl
cmp dword [ebp - 0x1730], edi
jb 0x423762
mov eax, dword [ebp - 0x1744]
push eax
call fcn.0048e224
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x16e8], 0x10
mov dword [ebp - 0x1730], 7
mov dword [ebp - 0x1734], ebx
mov word [ebp - 0x1744], cx
jb 0x423793
mov edx, dword [ebp - 0x16fc]
push edx
call fcn.0048e224
add esp, 4
mov dword [ebp - 0x16e8], esi
mov dword [ebp - 0x16ec], ebx
mov byte [ebp - 0x16fc], bl
cmp dword [ebp - 0x16b0], edi
jb 0x4237bc
mov eax, dword [ebp - 0x16c4]
push eax
call fcn.0048e224
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret