Function at 0x42df30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0c67
mov eax, dword fs:[0]
push eax
mov eax, 0x1050
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x1012]
push edx
mov dword [ebp - 0x1058], edi
mov dword [ebp - 0x1054], eax
mov word [ebp - 0x1014], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x812]
push ecx
mov word [ebp - 0x814], ax
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x267c]
mov esi, dword [eax]
add esp, 0xc
cmp esi, eax
je 0x42e071
mov ebx, dword [esi + 8]
mov eax, dword [ebp - 0x1054]
lea ecx, [ebx + 8]
add eax, 8
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42dff6
test dx, dx
je 0x42dff2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42dff6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42dfd0
xor eax, eax
jmp 0x42dffb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e00b
mov esi, dword [esi]
cmp esi, dword [edi + 0x267c]
jne 0x42dfbf
jmp 0x42e071
lea edx, [ebx + 0x2088]
push edx
push 0x4ab4fc
lea eax, [ebp - 0x1014]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add ebx, 0x2888
push ebx
push 0x4ab4fc
lea ecx, [ebp - 0x814]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x20
cmp esi, dword [edi + 0x267c]
je 0x42e071
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push esi
mov dword [eax + 4], ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
dec dword [edi + 0x2680]
mov eax, dword [edi + 0x23a8]
mov ebx, dword [eax]
cmp ebx, eax
je 0x42e5d6
mov esi, dword [ebx + 8]
mov ecx, dword [ebp - 0x1054]
mov dword [ebp - 0x1050], esi
lea eax, [esi + 0x100]
add ecx, 8
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42e0c6
test dx, dx
je 0x42e0c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42e0c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42e0a0
xor eax, eax
jmp 0x42e0cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e0de
mov ebx, dword [ebx]
cmp ebx, dword [edi + 0x23a8]
jne 0x42e081
jmp 0x42e5d6
mov ebx, dword [ebp - 0x1054]
push 0
lea eax, [ebx + 8]
push str.checkinstallflag
push eax
call fcn.00460cd0
add esp, 0xc
lea edx, [ebp - 0x1014]
push edx
push 0x4ab4fc
lea eax, [esi + 0x3200]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
lea ecx, [ebp - 0x814]
push ecx
push 0x4ab4fc
lea eax, [esi + 0x4a00]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x20
cmp byte [ebx + 0x6109], 0
lea ebx, [esi + 0x100]
je 0x42e2e4
push 2
push str.installstate
push ebx
mov dword [esi + 0xd8a8], 2
call fcn.00460cd0
add esp, 0xc
push 2
push edi
mov ecx, ebx
call fcn.00436ba0
lea edx, [esi + 0x180]
push edx
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
cmp eax, 5
jne 0x42e1c8
push 1
mov eax, 0xe958
call fcn.00497d20
mov edi, esp
mov ecx, 0x3a56
rep movsd dword es:[edi], dword [esi]
call fcn.00436150
push 0
mov eax, 0xe958
call fcn.00497d20
mov esi, dword [ebp - 0x1050]
mov edi, esp
mov ecx, 0x3a56
rep movsd dword es:[edi], dword [esi]
call fcn.00436150
mov esi, dword [ebp - 0x1050]
mov edi, dword [ebp - 0x1058]
lea eax, [esi + 0x4a00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e1d1
sub eax, edx
lea ecx, [esi + 0x200]
push ecx
lea edx, [esi + 0xa00]
push edx
sar eax, 1
push eax
lea eax, [esi + 0x4a00]
push eax
push ebx
call fcn.00473050
mov eax, dword [ebp - 0x1054]
add esp, 0x14
add eax, 8
push str.downloadfilepath
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.004674a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1038], 8
mov eax, dword [ebp - 0x104c]
jae 0x42e239
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx ecx, byte [edi + 0x2694]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1050], esp
push 0x11
mov edi, 7
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
push str.gameinstallfinish
mov word [ecx], dx
call fcn.004027c0
sub esp, 0x1c
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ebx
mov dword [ebp - 0x105c], esp
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42e296
sub eax, edi
sar eax, 1
push eax
push ebx
call fcn.004027c0
mov ecx, dword [ebp - 0x1058]
mov byte [ebp - 4], 0
call fcn.00428e70
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1038], 8
jb 0x42e389
mov ecx, dword [ebp - 0x104c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x42e389
push 3
push str.installstate
push ebx
mov dword [esi + 0xd8a8], 3
call fcn.00460cd0
add esp, 0xc
push 3
push edi
mov ecx, ebx
call fcn.00436ba0
movzx edx, byte [edi + 0x2694]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x105c], esp
push 0xf
mov edi, 7
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
push str.gameinstallfail
mov word [ecx], ax
call fcn.004027c0
sub esp, 0x1c
mov dword [ebp - 4], 2
mov ecx, esp
mov dword [ecx + 0x14], edi
xor edx, edx
mov eax, ebx
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x1050], esp
mov word [ecx], dx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42e361
sub eax, edi
sar eax, 1
push eax
push ebx
call fcn.004027c0
mov ecx, dword [ebp - 0x1058]
mov dword [ebp - 4], 0xffffffff
call fcn.00428e70
mov eax, dword [ebp - 0x1054]
cmp byte [eax + 0x6108], 0
je 0x42e492
cmp dword [eax], 0
je 0x42e5d6
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1058]
mov ebx, dword [sym.imp.MSVCR100.dll__cprintf]
push str.addplay:
mov dword [ecx + 0x26a4], eax
call ebx
lea edi, [esi + 0x3200]
add esp, 4
test edi, edi
jne 0x42e3dd
xor eax, eax
jmp 0x42e42b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x42e423
add eax, eax
mov dword [ebp - 0x1050], eax
call fcn.00497dd0
mov ebx, esp
test ebx, ebx
je 0x42e423
mov edx, dword [ebp - 0x1050]
push 0
push 0
push edx
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x42e425
xor eax, eax
mov ebx, dword [sym.imp.MSVCR100.dll__cprintf]
push eax
call ebx
add esp, 4
push 0x4b4818
call ebx
mov ebx, esi
mov esi, dword [ebp - 0x1058]
add esp, 4
mov ecx, 1
mov edx, esi
call fcn.00429e90
mov eax, dword [esi + 0x26a4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x26a4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1054]
push 0
push 0
mov dword [esi + 0x26a4], 0
mov eax, dword [edx]
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x42e5d6
push 0
lea edi, [esi + 0x4a00]
push edi
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
test eax, eax
jne 0x42e5ba
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], eax
xor edx, edx
mov eax, edi
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x105c], esp
mov word [ecx], dx
lea edi, [eax + 2]
jmp 0x42e4d0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42e4d0
sub eax, edi
sar eax, 1
push eax
lea eax, [esi + 0x4a00]
push eax
call fcn.004027c0
sub esp, 0x1c
mov dword [ebp - 4], 3
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
lea eax, [esi + 0x3200]
mov dword [ebp - 0x1050], esp
lea edi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42e520
sub eax, edi
sar eax, 1
push eax
lea eax, [esi + 0x3200]
push eax
call fcn.004027c0
lea ecx, [ebp - 0x1030]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00469d70
add esp, 0x3c
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x1030]
mov edi, 8
cmp dword [ebp - 0x101c], edi
jae 0x42e572
lea eax, [ebp - 0x1030]
push eax
push ebx
call fcn.00462eb0
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x101c], edi
jb 0x42e59b
mov edx, dword [ebp - 0x1030]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], ax
jmp 0x42e5c4
push edi
push ebx
call fcn.00462eb0
add esp, 8
mov edx, dword [ebp - 0x1058]
mov ecx, 1
mov ebx, esi
call fcn.00429e90
lea esp, [ebp - 0x106c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret 4