Function at 0x500c20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65fe3d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x704e7c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.00500ee0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esi, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
push eax
call fcn.00585180
add esp, 4
call fcn.00585190
push eax
call fcn.00613e6d
add esp, 4
push 1
call fcn.005841f0
add esp, 4
push 0
push 0x685b7c
call fcn.00613094
add esp, 8
test eax, eax
jne 0x500ca2
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.00613094
add esp, 8
test eax, eax
jne 0x500cc9
push str.patchupdater.exe
call fcn.0061617a
add esp, 4
xor al, al
jmp 0x500ec5
call dword [sym.imp.DevIL.dll_ilInit]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00501350
add esp, 4
test eax, eax
jne 0x500ce6
xor al, al
jmp 0x500ec5
push 0
call fcn.005842a0
add esp, 4
mov edx, dword [0x71372c]
and edx, 1
jne 0x500d2d
mov eax, dword [0x71372c]
or eax, 1
mov dword [0x71372c], eax
mov dword [ebp - 4], 0
mov ecx, 0x713724
call fcn.00585fd0
push 0x6713b0
call fcn.00610c09
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x71372c]
and ecx, 2
jne 0x500d6c
mov edx, dword [0x71372c]
or edx, 2
mov dword [0x71372c], edx
mov dword [ebp - 4], 1
mov ecx, 0x70fa48
call fcn.005d0890
push 0x6713a0
call fcn.00610c09
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.pack
call fcn.005002f0
add esp, 4
movzx eax, al
test eax, eax
jne 0x500d98
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.00584590
add esp, 0xc
xor al, al
jmp 0x500ec5
mov ecx, dword [ebp + 8]
push ecx
call fcn.004dfc40
add esp, 4
movzx edx, al
test edx, edx
je 0x500db9
call fcn.004dfba0
push eax
call fcn.00561b90
add esp, 4
push 0x24878
call fcn.00610463
add esp, 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x70], 0
je 0x500de3
mov ecx, dword [ebp - 0x70]
call fcn.004ca7b0
mov dword [ebp - 0x7c], eax
jmp 0x500dea
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00568fd0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x68]
call fcn.0058fb50
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.004e5fd0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x5c]
push eax
call fcn.005902a0
add esp, 4
push str.eter.python
lea ecx, [ebp - 0x68]
call fcn.0058fda0
movzx ecx, al
test ecx, ecx
je 0x500e5b
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.005007a0
add esp, 8
mov byte [ebp - 0x11], al
mov ecx, dword [ebp - 0x10]
call fcn.004cd6c0
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
lea ecx, [ebp - 0x68]
call sub.python22.dll_Py_Finalize
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.004e6040
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0058fb70
mov ecx, dword [ebp - 0x10]
call fcn.004cd6e0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x74], edx
cmp dword [ebp - 0x74], 0
je 0x500ebb
push 1
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x74]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x80], eax
jmp 0x500ec2
mov dword [ebp - 0x80], 0
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.006108ae
mov esp, ebp
pop ebp
ret