Function at 0x5987e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b143e
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x762dc0]
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.00596b50
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.005abec0
add esp, 4
call fcn.005abe60
push eax
call fcn.0065eee8
add esp, 4
push 1
call fcn.005aae80
add esp, 4
push 0
push 0x6dbbb4
call fcn.0065decd
add esp, 8
test eax, eax
jne 0x598862
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.0065decd
add esp, 8
test eax, eax
jne 0x598889
push str.patchupdater.exe
call fcn.0065f123
add esp, 4
xor al, al
jmp 0x598aab
call dword [sym.imp.DevIL.dll_ilInit]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00597d40
add esp, 4
test eax, eax
jne 0x5988a6
xor al, al
jmp 0x598aab
push 0
call fcn.005aae30
add esp, 4
mov edx, dword [0x79f688]
and edx, 1
jne 0x5988ed
mov eax, dword [0x79f688]
or eax, 1
mov dword [0x79f688], eax
mov dword [ebp - 4], 0
mov ecx, 0x79f680
call fcn.005ac7e0
push 0x6bb9a0
call fcn.00659699
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x79f688]
and ecx, 2
jne 0x59892c
mov edx, dword [0x79f688]
or edx, 2
mov dword [0x79f688], edx
mov dword [ebp - 4], 1
mov ecx, 0x79f690
call fcn.005de360
push 0x6bb910
call fcn.00659699
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.pack
call fcn.00597da0
add esp, 4
movzx eax, al
test eax, eax
jne 0x598958
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.005aacd0
add esp, 0xc
xor al, al
jmp 0x598aab
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055e7b0
add esp, 4
movzx edx, al
test edx, edx
je 0x598979
call fcn.0055e580
push eax
call fcn.005c2aa0
add esp, 4
call fcn.00597440
movzx eax, al
test eax, eax
jne 0x59898c
xor al, al
jmp 0x598aab
call fcn.00597bc0
movzx ecx, al
test ecx, ecx
jne 0x59899f
xor al, al
jmp 0x598aab
push 0x2a980
call fcn.0065951d
add esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x48], 0
je 0x5989c9
mov ecx, dword [ebp - 0x48]
call fcn.00546ce0
mov dword [ebp - 0x44], eax
jmp 0x5989d0
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.005d3b10
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x64]
call fcn.0064e3c0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.00564f90
mov byte [ebp - 4], 4
lea edx, [ebp - 0x34]
push edx
call fcn.0064eb10
add esp, 4
push str.eter.python
lea ecx, [ebp - 0x64]
call fcn.0064e470
movzx eax, al
test eax, eax
je 0x598a41
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00598290
add esp, 8
mov byte [ebp - 0x35], al
mov ecx, dword [ebp - 0x3c]
call fcn.00547a80
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.00565000
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0064e3e0
mov ecx, dword [ebp - 0x3c]
call fcn.005478d0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x598aa1
push 1
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x40]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x50], eax
jmp 0x598aa8
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.0065b5b4
mov esp, ebp
pop ebp
ret