Function at 0x562240
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65770d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6f77c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.005614c0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esi, eax
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00575320
add esp, 4
call fcn.005752c0
push eax
call fcn.0061a2b8
add esp, 4
push 1
call fcn.005742f0
add esp, 4
push 0
push 0x6783a0
call fcn.0061908d
add esp, 8
test eax, eax
jne 0x5622c2
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.0061908d
add esp, 8
test eax, eax
jne 0x5622e9
push str.patchupdater.exe
call fcn.0061c643
add esp, 4
xor al, al
jmp 0x5624e5
call dword [sym.imp.DevIL.dll_ilInit]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00561880
add esp, 4
test eax, eax
jne 0x562306
xor al, al
jmp 0x5624e5
push 0
call fcn.005742a0
add esp, 4
mov edx, dword [0x7117b4]
and edx, 1
jne 0x56234d
mov eax, dword [0x7117b4]
or eax, 1
mov dword [0x7117b4], eax
mov dword [ebp - 4], 0
mov ecx, 0x7117ac
call fcn.00575d20
push 0x660b70
call fcn.0061601e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x7117b4]
and ecx, 2
jne 0x56238c
mov edx, dword [0x7117b4]
or edx, 2
mov dword [0x7117b4], edx
mov dword [ebp - 4], 1
mov ecx, 0x7117b8
call fcn.005a6d90
push 0x660b50
call fcn.0061601e
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.pack
call fcn.005618e0
add esp, 4
movzx eax, al
test eax, eax
jne 0x5623b8
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.00574140
add esp, 0xc
xor al, al
jmp 0x5624e5
mov ecx, dword [ebp + 8]
push ecx
call fcn.0053e080
add esp, 4
movzx edx, al
test edx, edx
je 0x5623d9
call fcn.0053de50
push eax
call fcn.0058d980
add esp, 4
push 0x2efb8
call fcn.00615ea2
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x48], 0
je 0x562403
mov ecx, dword [ebp - 0x48]
call fcn.005277c0
mov dword [ebp - 0x44], eax
jmp 0x56240a
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.0059c120
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x64]
call fcn.0060e630
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00544710
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push eax
call fcn.0060ed90
add esp, 4
push str.eter.python
lea ecx, [ebp - 0x64]
call fcn.0060e6e0
movzx ecx, al
test ecx, ecx
je 0x56247b
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00561d50
add esp, 8
mov byte [ebp - 0x35], al
mov ecx, dword [ebp - 0x3c]
call fcn.005284d0
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
lea ecx, [ebp - 0x64]
call sub.python27.dll_Py_Finalize
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00544780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0060e650
mov ecx, dword [ebp - 0x3c]
call fcn.00528330
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x5624db
push 1
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x50], eax
jmp 0x5624e2
mov dword [ebp - 0x50], 0
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0061693e
mov esp, ebp
pop ebp
ret