Function at 0x405530
Capabilities:
Delete file
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4536e1
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x46f020]
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
cmp byte [0x46fb80], 0
je 0x40575e
push 0x46ba48
push str.patch.hpl
call fcn.00425170
mov esi, eax
add esp, 8
test esi, esi
je 0x40575e
push esi
push 1
push 4
push 0x46fb60
call fcn.00429c30
push esi
push 1
push 4
push 0x46fb64
call fcn.00429c30
push esi
push 1
push 4
push 0x46fb6c
call fcn.00429c30
push esi
push 1
push 4
push 0x46fb68
call fcn.00429c30
add esp, 0x40
push esi
call fcn.00416750
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00403a10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xdc]
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.00401eb0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401f90
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push str._slegac.y
call fcn.00404890
add esp, 8
lea ecx, [ebp - 0x80]
mov edi, eax
call fcn.00401f90
push 0x46ba48
push edi
call fcn.00425170
mov esi, eax
add esp, 8
test esi, esi
je 0x405677
push esi
push 1
push 4
push 0x46fb70
call fcn.00429c30
push esi
push 1
push 4
push 0x46fb74
call fcn.00429c30
jmp 0x4056ad
push 0x46ba44
push edi
call fcn.00425170
mov esi, eax
add esp, 8
test esi, esi
je 0x40575e
push esi
push 1
push 4
push 0x46fb70
call fcn.00426e00
push esi
push 1
push 4
push 0x46fb74
call fcn.00426e00
add esp, 0x20
push esi
call fcn.00416750
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00403a10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0xdc]
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.00401eb0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401f90
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push str._spatch.hpl
call fcn.00404890
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x80]
call fcn.00401f90
cmp dword [0x46fb64], 0x299d773
mov edi, dword [0x46fb6c]
je 0x40577e
push 0
push str.Erro_ao_atualizar
mov ecx, str.FAIL_DOWNLOAD
call fcn.00402c30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
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.0040c1e0
mov esp, ebp
pop ebp
ret 4
cmp dword [0x46fb70], edi
jae 0x405b8c
lea ecx, [ebp - 0x2c]
call fcn.00403a10
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push dword [ebp - 0xdc]
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.00401eb0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401f90
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
push str._slauncher.bin
call fcn.00404890
add esp, 8
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.00401f90
push esi
push ecx
push str.http:__51.79.39.249
push str._s_launcher.exe
call fcn.00404890
add esp, 0xc
push eax
call fcn.00403030
cmp al, 1
jne 0x405744
lea ecx, [ebp - 0x48]
call fcn.00403a10
mov dword [ebp - 4], 3
lea esi, [ebp - 0x44]
mov eax, dword fs:[0x2c]
cmp dword [ebp - 0x30], 0x10
cmovae esi, dword [ebp - 0x44]
mov ecx, dword [eax]
mov eax, dword [0x471184]
cmp eax, dword [ecx + 4]
jle 0x40589a
push 0x471184
call fcn.0040c420
add esp, 4
cmp dword [0x471184], 0xffffffff
jne 0x40589a
push 0
push 0
push 0
mov dword [0x471180], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x453de0
mov dword [0x47117c], eax
call fcn.0040ca60
add esp, 4
push 0x471184
call fcn.0040c3d0
add esp, 4
push esi
push str.Current_executable:__s
push 0x47117c
call fcn.00402b00
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00403a10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push dword [ebp - 0xdc]
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.00401eb0
lea ecx, [ebp - 0x2c]
call fcn.00401f90
push 0x11
push str._old_launcher.bak
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00402640
mov esi, eax
mov byte [ebp - 4], 6
push 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.00402460
add esp, 4
lea ecx, [ebp - 0x64]
mov dword [eax + 4], 0
mov dword [ebp - 0x64], eax
push esi
mov dword [eax], ecx
call fcn.00402340
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 8
call fcn.00401f90
lea ecx, [ebp - 0x2c]
call fcn.00403a10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
push dword [ebp - 0xdc]
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0xd4]
push eax
call fcn.00401eb0
lea ecx, [ebp - 0x2c]
call fcn.00401f90
push 0xd
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd4]
push str._launcher.bin
call fcn.00402640
mov esi, eax
mov byte [ebp - 4], 0xb
push 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
call fcn.00402460
add esp, 4
lea ecx, [ebp - 0x9c]
mov dword [eax + 4], 0
mov dword [ebp - 0x9c], eax
push esi
mov dword [eax], ecx
call fcn.00402340
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xd
call fcn.00401f90
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x30], 0x10
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.0042a640
add esp, 8
test eax, eax
lea eax, [ebp - 0x98]
jne 0x405b5a
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x84], 0x10
push ecx
cmovae eax, dword [ebp - 0x98]
push eax
call fcn.0042a640
add esp, 8
test eax, eax
jne 0x405b1b
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xd5]
push 8
mov dword [ebp - 0xdc], eax
call fcn.00402460
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xe0], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xe
push 0x10
push str._ignoreinstances
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
call fcn.00402230
lea edx, [ebp - 0xb8]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
call fcn.00403de0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xd
mov bl, al
call fcn.00401f90
test bl, bl
jne 0x405ba3
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
jmp 0x405b2f
cmp dword [ebp - 0x84], 0x10
lea eax, [ebp - 0x98]
cmovae eax, dword [ebp - 0x98]
push eax
call fcn.0042a5c0
add esp, 4
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x60]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x4c], 0x10
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
call fcn.0042a640
add esp, 8
jmp 0x405b71
cmp dword [ebp - 0x84], 0x10
cmovae eax, dword [ebp - 0x98]
push eax
call fcn.0042a5c0
add esp, 4
lea ecx, [ebp - 0x9c]
call fcn.00401f90
lea ecx, [ebp - 0x64]
call fcn.00401f90
lea ecx, [ebp - 0x48]
call fcn.00401f90
mov eax, dword [0x46fb7c]
cmp dword [0x46fb60], eax
jbe 0x40575e
inc eax
jmp 0x405760
lea ecx, [ebp - 0x64]
call fcn.00401f80
push eax
call fcn.0042a5c0
add esp, 4
mov dword [0x46fb70], edi
mov ecx, 0x46fb44
call fcn.00406770
push 0
call fcn.0042a5a0
int3