Function at 0x402e80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4066b8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x40a018]
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 esi, dword [ebp + 8]
mov ecx, 0x100
xor eax, eax
dec esi
xor edi, edi
push ecx
mov dword [ebp + 8], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], ax
mov word [ebp - 0x48], cx
call fcn.004057c6
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], edi
mov dword [0x40fa64], 1
mov dword [0x40fe74], edi
cmp esi, dword [0x40ff20]
jae 0x403229
mov eax, 1
lea edx, [esi + 1]
sub eax, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x58], eax
mov edi, str.WAIT
call fcn.004011c0
mov esi, dword [sym.imp.MSVCR100.dll__snprintf]
push eax
push 0x400
push 0x40f638
call esi
mov eax, dword [0x40a5b8]
mov ebx, dword [sym.imp.USER32.dll_RedrawWindow]
add esp, 0xc
push 1
push 0
push 0
push eax
call ebx
mov edi, 0x407475
call fcn.004011c0
push eax
push 0x400
push 0x40f638
call esi
lea ecx, [ebp - 0x30]
add esp, 0xc
push ecx
call fcn.00401970
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x402f63
mov eax, dword [eax]
mov edi, dword [ebp - 0x34]
push edi
push eax
push str._s_i.rar
lea esi, [ebp - 0x54]
call fcn.00402450
add esp, 0xc
cmp dword [ebp - 0x1c], 0x10
jb 0x402f8b
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
push 1
push eax
push eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x30], al
mov dword [0x40fe74], eax
mov eax, dword [0x40a5b8]
push eax
mov dword [ebp - 0x1c], 0xf
mov dword [0x40fa64], 1
call ebx
push edi
push str.http:__patch.irosepvp.com
push str._s__i.rar
call fcn.00402400
mov ebx, dword [ebp - 0x4c]
add esp, 0xc
mov edi, eax
call fcn.00401440
test al, al
je 0x40325a
mov edi, dword [ebp - 0x34]
push edi
push str._i.dat
mov dword [0x40fe74], 0x64
call fcn.00402400
mov esi, dword [ebp - 0x4c]
add esp, 8
mov ebx, eax
mov ecx, esi
call fcn.00402480
test al, al
je 0x403289
test byte [0x40a49c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
jne 0x403043
or dword [0x40a49c], 1
push 0
push 0
push 0
mov dword [0x40a498], 0
call ebx
push 0x406770
mov dword [0x40a494], eax
call fcn.004058cd
add esp, 4
push edi
push str._i.rar_extraido_com_sucesso.
mov esi, 0x40a494
call fcn.004010a0
mov edi, dword [ebp - 0x4c]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
push ecx
call fcn.00401970
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x403074
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
push edx
push eax
push str._s_i.dat
lea esi, [ebp - 0x54]
call fcn.00402450
add esp, 0xc
cmp dword [ebp - 0x1c], 0x10
jb 0x40309c
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor esi, esi
push esi
push edi
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x4031d3
test byte [0x40a49c], 1
jne 0x4030de
or dword [0x40a49c], 1
push esi
push esi
push esi
mov dword [0x40a498], esi
call ebx
push 0x406770
mov dword [0x40a494], eax
call fcn.004058cd
add esp, 4
push str.Iniciando_atualizacao.
mov esi, 0x40a494
call fcn.004010a0
add esp, 4
mov ecx, edi
call fcn.00403330
test al, al
je 0x4032bc
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x34]
lea eax, [ecx + edx - 1]
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
test eax, eax
jns 0x403119
fadd dword [0x407eb8]
mov ecx, dword [0x40ff20]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
fild dword [ebp - 0x40]
jns 0x403130
fadd dword [0x407eb8]
fdivp st(1)
push 1
push 0
push 0
mov dword [0x40a62c], 0x64
fmul qword [0x407eb0]
fnstcw word [ebp - 0x36]
fstp dword [ebp - 0x3c]
movzx eax, word [ebp - 0x36]
fld dword [ebp - 0x3c]
or eax, 0xc00
mov dword [ebp - 0x40], eax
mov eax, dword [0x40a5b8]
push eax
fldcw word [ebp - 0x40]
fistp qword [ebp - 0x44]
mov edx, dword [ebp - 0x44]
mov dword [0x40a5bc], edx
fldcw word [ebp - 0x36]
call dword [sym.imp.USER32.dll_RedrawWindow]
test byte [0x40a49c], 1
jne 0x4031af
or dword [0x40a49c], 1
push 0
push 0
push 0
mov dword [0x40a498], 0
call ebx
push 0x406770
mov dword [0x40a494], eax
call fcn.004058cd
add esp, 4
fld dword [ebp - 0x3c]
sub esp, 8
fstp qword [esp]
push str.Patch_progeress_:__i
mov esi, 0x40a494
call fcn.004010a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403212
test byte [0x40a49c], 1
jne 0x403200
or dword [0x40a49c], 1
push esi
push esi
push esi
mov dword [0x40a498], esi
call ebx
push 0x406770
mov dword [0x40a494], eax
call fcn.004058cd
add esp, 4
push str.ARQUIVO_NAO_EXISTE
mov esi, 0x40a494
call fcn.004010a0
add esp, 4
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
dec eax
cmp eax, dword [0x40ff20]
jb 0x402f01
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x403237
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
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.004057d1
mov esp, ebp
pop ebp
ret 4
push 0
push 0x407475
mov edi, str.FAIL_DOWNLOAD
call fcn.004011c0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x403285
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
jmp 0x40323c
push 0
push 0x407475
mov edi, str.FAIL_EXTRACT
call fcn.004011c0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x403285
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
jmp 0x40323c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [0x40a49c], 1
jne 0x4032f7
or dword [0x40a49c], 1
push 0
push 0
push 0
mov dword [0x40a498], 0
call ebx
push 0x406770
mov dword [0x40a494], eax
call fcn.004058cd
add esp, 4
push str.Falha_ao_carregar_lista_de_patchs.
mov esi, 0x40a494
call fcn.004010a0
add esp, 4
test edi, edi
je 0x403285
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
jmp 0x40323c