Function at 0x405bf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45372d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x46f020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x60], ax
mov ebx, edi
mov eax, 0x100
mov dword [ebp - 0x64], 0
dec edi
mov word [ebp - 0x58], ax
push eax
mov dword [ebp + 8], edi
call fcn.0040ca90
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
mov dword [0x476b48], 1
mov dword [0x476b4c], 0
cmp edi, dword [0x46fb60]
jae 0x406095
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
nop word [eax + eax]
mov ecx, str.WAIT
mov dword [ebp - 0x54], ebx
call fcn.00402c30
push eax
push 0x400
push 0x476748
call fcn.00404970
add esp, 0xc
push 1
push 0
push 0
push dword [0x476344]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, 0x46b622
call fcn.00402c30
push eax
push 0x400
push 0x476748
call fcn.00404970
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403a10
push dword [ebp - 0x50]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00401eb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00401f90
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push ebx
cmovae eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push str._s_i.rar
push eax
call fcn.00404900
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.00401f90
push 1
push 0
push 0
push dword [0x476344]
mov dword [0x476b48], 1
mov dword [0x476b4c], 0
call dword [sym.imp.USER32.dll_RedrawWindow]
push esi
push ecx
push ebx
push str.http:__51.79.39.249
push str._s__i.rar
call fcn.00404890
add esp, 0x10
push eax
call fcn.00403030
test al, al
je 0x406168
push ebx
push str._i.dat
mov dword [0x476b4c], 0x64
call fcn.00404890
add esp, 8
mov edx, eax
mov ecx, esi
call fcn.00404990
test al, al
je 0x406140
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x471184]
cmp eax, dword [ecx + 4]
jle 0x405e0b
push 0x471184
call fcn.0040c420
add esp, 4
cmp dword [0x471184], 0xffffffff
jne 0x405e0b
push 0
push 0
push 0
mov dword [0x471180], 0
call edi
push 0x453de0
mov dword [0x47117c], eax
call fcn.0040ca60
add esp, 4
push 0x471184
call fcn.0040c3d0
add esp, 4
push ebx
push str._i.rar_extraido_com_sucesso.
push 0x47117c
call fcn.00402b00
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
call fcn.00403a10
push dword [ebp - 0x50]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push 2
push 0x46ba4c
push ecx
call fcn.00404420
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00401eb0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00401f90
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push ebx
cmovae eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push str._s_i.dat
push eax
call fcn.00404900
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.00401f90
push 0
push esi
call fcn.0042c120
mov edx, dword fs:[0x2c]
add esp, 8
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
test eax, eax
jne 0x406024
cmp dword [0x471184], ecx
jle 0x405f04
push 0x471184
call fcn.0040c420
add esp, 4
cmp dword [0x471184], 0xffffffff
jne 0x405f04
push 0
push 0
push 0
mov dword [0x471180], 0
call edi
push 0x453de0
mov dword [0x47117c], eax
call fcn.0040ca60
add esp, 4
push 0x471184
call fcn.0040c3d0
add esp, 4
push str.Iniciando_atualizacao.
push 0x47117c
call fcn.00402b00
add esp, 8
push esi
call fcn.00406190
test al, al
je 0x4060c4
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp + 8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x46c290]
mov eax, dword [0x46fb60]
sub eax, dword [ebp + 8]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x46c290]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x46c280]
movaps xmm0, xmm1
movss dword [ebp - 0x50], xmm1
call fcn.00453280
push 1
push 0
push 0
push dword [0x476344]
mov dword [0x476bb4], eax
mov dword [0x476bb8], 0x64
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edx, dword fs:[0x2c]
mov eax, dword [0x471184]
mov ecx, dword [edx]
cmp eax, dword [ecx + 4]
jle 0x405ff9
push 0x471184
call fcn.0040c420
add esp, 4
cmp dword [0x471184], 0xffffffff
jne 0x405ff9
push 0
push 0
push 0
mov dword [0x471180], 0
call edi
push 0x453de0
mov dword [0x47117c], eax
call fcn.0040ca60
add esp, 4
push 0x471184
call fcn.0040c3d0
add esp, 4
movss xmm0, dword [ebp - 0x50]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.Patch_progeress_:__i
push 0x47117c
call fcn.00402b00
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x406085
cmp dword [0x471184], ecx
jle 0x406073
push 0x471184
call fcn.0040c420
add esp, 4
cmp dword [0x471184], 0xffffffff
jne 0x406073
push 0
push 0
push 0
mov dword [0x471180], 0
call edi
push 0x453de0
mov dword [0x47117c], eax
call fcn.0040ca60
add esp, 4
push 0x471184
call fcn.0040c3d0
add esp, 4
push str.ARQUIVO_NAO_EXISTE
push 0x47117c
call fcn.00402b00
add esp, 8
mov eax, dword [ebp - 0x54]
inc ebx
cmp eax, dword [0x46fb60]
jb 0x405c80
mov edi, 1
push esi
call fcn.0040c240
add esp, 4
mov ax, di
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x471184]
cmp eax, dword [ecx + 4]
jle 0x406127
push 0x471184
call fcn.0040c420
add esp, 4
cmp dword [0x471184], 0xffffffff
jne 0x406127
push 0
push 0
push 0
mov dword [0x471180], 0
call edi
push 0x453de0
mov dword [0x47117c], eax
call fcn.0040ca60
add esp, 4
push 0x471184
call fcn.0040c3d0
add esp, 4
push str.Falha_ao_carregar_lista_de_patchs.
push 0x47117c
call fcn.00402b00
add esp, 8
xor edi, edi
jmp 0x40609a
push 0
push 0x46b622
mov ecx, str.FAIL_EXTRACT
call fcn.00402c30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
jmp 0x40609a
push 0
push 0x46b622
mov ecx, str.FAIL_DOWNLOAD
call fcn.00402c30
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor edi, edi
jmp 0x40609a