Function at 0x503dc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6622dd
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x70903c]
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.00504080
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.00588090
add esp, 4
call fcn.005880a0
push eax
call fcn.006175fd
add esp, 4
push 1
call fcn.00587100
add esp, 4
push 0
push 0x6897e4
call fcn.00616b16
add esp, 8
test eax, eax
jne 0x503e42
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.00616b16
add esp, 8
test eax, eax
jne 0x503e69
push str.patchupdater.exe
call fcn.0061973a
add esp, 4
xor al, al
jmp 0x504065
call dword [sym.imp.DevIL.dll_ilInit]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005044f0
add esp, 4
test eax, eax
jne 0x503e86
xor al, al
jmp 0x504065
push 0
call fcn.005871b0
add esp, 4
mov edx, dword [0x718a34]
and edx, 1
jne 0x503ecd
mov eax, dword [0x718a34]
or eax, 1
mov dword [0x718a34], eax
mov dword [ebp - 4], 0
mov ecx, 0x718a2c
call fcn.00588ee0
push 0x673870
call fcn.006141c9
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x718a34]
and ecx, 2
jne 0x503f0c
mov edx, dword [0x718a34]
or edx, 2
mov dword [0x718a34], edx
mov dword [ebp - 4], 1
mov ecx, 0x714d50
call fcn.005d3e40
push 0x673860
call fcn.006141c9
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.pack
call fcn.00503490
add esp, 4
movzx eax, al
test eax, eax
jne 0x503f38
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.005874a0
add esp, 0xc
xor al, al
jmp 0x504065
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e1bd0
add esp, 4
movzx edx, al
test edx, edx
je 0x503f59
call fcn.004e1b30
push eax
call fcn.00565150
add esp, 4
push 0x29708
call fcn.00613a23
add esp, 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x70], 0
je 0x503f83
mov ecx, dword [ebp - 0x70]
call fcn.004cc8c0
mov dword [ebp - 0x7c], eax
jmp 0x503f8a
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.0056cc70
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x68]
call fcn.00592ae0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.004e7fe0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x5c]
push eax
call fcn.00593230
add esp, 4
push str.eter.python
lea ecx, [ebp - 0x68]
call fcn.00592d30
movzx ecx, al
test ecx, ecx
je 0x503ffb
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.00503940
add esp, 8
mov byte [ebp - 0x11], al
mov ecx, dword [ebp - 0x10]
call fcn.004cf7d0
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.004e8050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00592b00
mov ecx, dword [ebp - 0x10]
call fcn.004cf7f0
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 0x50405b
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 0x504062
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.00613e6e
mov esp, ebp
pop ebp
ret