Function at 0x508980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68b22f
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x763480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
call fcn.0063b287
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add eax, esi
push eax
call fcn.005202a0
call fcn.00520240
push eax
call fcn.0063b275
push 1
call fcn.0051ef50
push 0
push str.perf_game_update.txt
call fcn.00638fad
add esp, 0x14
test eax, eax
jne 0x5089fb
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.00638fad
add esp, 8
test eax, eax
jne 0x508a39
push str.patchupdater.exe
call fcn.0063eb82
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005df41a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.DevIL.dll_ilInit]
push edi
call fcn.00509de0
add esp, 4
test eax, eax
je 0x508a1b
push 0
call fcn.0051ef00
mov eax, dword fs:[0x2c]
add esp, 4
mov ecx, dword [0x7b7774]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x77a198]
cmp eax, dword [esi + 0x20]
jg 0x508c46
mov eax, dword [0x77b648]
cmp eax, dword [esi + 0x20]
jg 0x508c94
mov eax, dword [0x77b6cc]
cmp eax, dword [esi + 0x20]
jg 0x508ce2
push str.pack
call fcn.00508d80
add esp, 4
test al, al
jne 0x508abf
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.0051ed80
add esp, 0xc
jmp 0x508a1b
push ebx
call fcn.0045f690
add esp, 4
test al, al
je 0x508ada
call fcn.004eaf10
push eax
call fcn.0053a9a0
add esp, 4
mov eax, dword [0x77b6f0]
cmp eax, dword [esi + 0x20]
jg 0x508d30
movq xmm0, qword [str.config.cfg]
mov ax, word [0x6b5da4]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0xa
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
mov ecx, 0x77b6d0
call fcn.004789d0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x508b64
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508b5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x508d77
push edx
push ecx
call fcn.005df40c
add esp, 8
call fcn.00509ec0
test al, al
je 0x508a1b
call fcn.00509e40
test al, al
je 0x508a1b
push 0x57988
call fcn.005df3dc
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x508ba4
mov ecx, eax
call fcn.004d81b0
mov esi, eax
jmp 0x508ba6
xor esi, esi
push ebx
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00553f30
lea ecx, [ebp - 0x1c]
xor bl, bl
call fcn.005d5ce0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 6
call fcn.004ee4a0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 7
push eax
call fcn.005d6590
add esp, 4
lea ecx, [ebp - 0x1c]
push str.eter.python
call fcn.005d5da0
test al, al
je 0x508bfe
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00509670
add esp, 8
mov bl, al
mov ecx, esi
call fcn.004d8dd0
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
lea ecx, [ebp - 0x1c]
call sub.python27.dll_Py_Finalize
lea ecx, [ebp - 0x4c]
call fcn.004ee540
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.005d5d10
mov ecx, esi
call fcn.004d9450
test esi, esi
je 0x508c3f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov al, bl
jmp 0x508a1d
push 0x77a198
call fcn.005df9b9
add esp, 4
cmp dword [0x77a198], 0xffffffff
jne 0x508a76
mov ecx, 0x77a190
mov dword [ebp - 4], 0
call fcn.005220e0
push 0x69a380
call fcn.005df871
push 0x77a198
mov dword [ebp - 4], 0xffffffff
call fcn.005df96f
add esp, 8
jmp 0x508a76
push 0x77b648
call fcn.005df9b9
add esp, 4
cmp dword [0x77b648], 0xffffffff
jne 0x508a87
mov ecx, 0x77a1a0
mov dword [ebp - 4], 1
call fcn.0055fe00
push 0x69a2d0
call fcn.005df871
push 0x77b648
mov dword [ebp - 4], 0xffffffff
call fcn.005df96f
add esp, 8
jmp 0x508a87
push 0x77b6cc
call fcn.005df9b9
add esp, 4
cmp dword [0x77b6cc], 0xffffffff
jne 0x508a98
mov ecx, 0x77b650
mov dword [ebp - 4], 2
call fcn.0045c510
push 0x69a370
call fcn.005df871
push 0x77b6cc
mov dword [ebp - 4], 0xffffffff
call fcn.005df96f
add esp, 8
jmp 0x508a98
push 0x77b6f0
call fcn.005df9b9
add esp, 4
cmp dword [0x77b6f0], 0xffffffff
jne 0x508aeb
mov ecx, 0x77b6d0
mov dword [ebp - 4], 3
call fcn.00478530
push 0x69a390
call fcn.005df871
push 0x77b6f0
call fcn.005df96f
add esp, 8
jmp 0x508aeb
call fcn.00631407
int3