Function at 0x409809
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42a814
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x433774]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x433774]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x42e920
lea esi, [esp + 0x40]
mov dword [esp + 0x2c], eax
call fcn.0040b587
xor ebx, ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jmp 0x409873
xor ebx, ebx
push 0xf
pop edi
push ebx
mov esi, 0x42e465
push esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0x18], edi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00402dcc
mov byte [esp + 0x150], 1
push ebx
push esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.00402dcc
mov byte [esp + 0x150], 2
push ebx
push esi
lea ecx, [esp + 0x98]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00402dcc
mov byte [esp + 0x150], 3
push ebx
push esi
lea ecx, [esp + 0xb4]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00402dcc
mov byte [esp + 0x150], 4
push ebx
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.00402dcc
mov byte [esp + 0x150], 5
mov eax, dword [0x43698c]
cmp eax, ebx
jne 0x409967
push 8
call fcn.0040e1e2
pop ecx
cmp eax, ebx
je 0x409960
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x409962
xor eax, eax
mov dword [0x43698c], eax
push str.down_geturl
mov ecx, eax
call fcn.0040845f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x1f4
push edi
call esi
jmp 0x4099b2
push dword [esp + 0x10]
push str.GetHttpValues_return_false_iRetryReadParam:_d
call fcn.0040903f
pop ecx
pop ecx
cmp dword [esp + 0x10], ebx
jl 0x409f2f
dec dword [esp + 0x10]
mov dword [esp + 0x14], 0x78
push edi
call esi
dec dword [esp + 0x14]
jne 0x4099a9
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00409fde
test eax, eax
je 0x409983
cmp dword [esp + 0x68], ebx
jne 0x4099fa
push 0x12
push str.MagicplusSetup.exe
lea ecx, [esp + 0x60]
call fcn.00402dcc
push ebx
call fcn.00405ccd
lea ecx, [esp + 0xe8]
mov dword [esp], 0x42e920
call fcn.00405de2
mov ebx, eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x150], 6
call fcn.0040bf6c
push 1
xor edi, edi
lea esi, [esp + 0xe8]
mov byte [esp + 0x154], 5
call fcn.0040c1b5
cmp dword [esp + 0x6c], 0x10
mov esi, dword [esp + 0x58]
jae 0x409a4d
lea esi, [esp + 0x58]
xor ebx, ebx
push ebx
call fcn.00405ccd
pop ecx
lea eax, [esp + 0x124]
push eax
mov ecx, esi
call fcn.00406059
push eax
push 0x42ead4
lea eax, [esp + 0xec]
mov byte [esp + 0x158], 7
call fcn.0040c9b3
pop ecx
pop ecx
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x44]
mov byte [esp + 0x158], 8
call fcn.0040c434
push 1
xor edi, edi
lea esi, [esp + 0xe8]
call fcn.0040c1b5
push 1
lea esi, [esp + 0x128]
mov byte [esp + 0x154], 5
call fcn.0040c1b5
cmp dword [esp + 0xa4], 0x10
mov eax, dword [esp + 0x90]
jae 0x409ad5
lea eax, [esp + 0x90]
push eax
call fcn.0040fdb7
pop ecx
mov dword [esp + 0x2c], eax
cmp eax, ebx
jle 0x409bcc
sub esp, 0x1c
lea eax, [esp + 0x58]
mov esi, esp
mov dword [esp + 0x40], esp
push eax
call fcn.0040b561
push ebx
mov byte [esp + 0x170], 9
call fcn.00405ccd
pop ecx
mov byte [esp + 0x16c], 5
call fcn.00406182
cmp eax, dword [esp + 0x2c]
jb 0x409bcc
sub esp, 0x1c
lea eax, [esp + 0xc8]
mov esi, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00403ce0
sub esp, 0x1c
mov byte [esp + 0x188], 0xa
lea eax, [esp + 0x74]
mov esi, esp
mov dword [esp + 0x68], esp
push eax
call fcn.0040b561
mov byte [esp + 0x188], 5
call fcn.0040ad93
cmp eax, ebx
je 0x409bb6
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x20], esi
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0xb4]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0x98]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0x7c]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0xd0]
mov byte [esp + 0x158], bl
call fcn.00402ec6
jmp 0x409e2d
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x409bc5
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x88], 0x10
mov esi, dword [esp + 0x74]
jae 0x409bde
lea esi, [esp + 0x74]
push ebx
call fcn.00405ccd
pop ecx
lea eax, [esp + 0x108]
push eax
mov ecx, esi
call fcn.00406059
mov byte [esp + 0x150], 0xb
mov eax, dword [0x43698c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], 5
cmp eax, ebx
jne 0x409c33
push 8
call fcn.0040e1e2
pop ecx
cmp eax, ebx
je 0x409c2c
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x409c2e
xor eax, eax
mov dword [0x43698c], eax
push str.down_downpacket_start
mov ecx, eax
call fcn.0040845f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
sub esp, 0x1c
lea eax, [esp + 0x64]
mov esi, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.0040b561
sub esp, 0x1c
mov byte [esp + 0x194], 0xc
lea eax, [esp + 0x14c]
mov esi, esp
mov dword [esp + 0x64], esp
push eax
call fcn.0040b561
mov byte [esp + 0x194], 0xb
call fcn.0040a7d9
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0xe8]
call fcn.0040b561
sub esp, 0x1c
mov byte [esp + 0x16c], 0xd
lea eax, [esp + 0x100]
mov esi, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0040b561
push ebx
mov byte [esp + 0x170], 0xe
call fcn.00405ccd
pop ecx
mov byte [esp + 0x16c], 0xd
call fcn.00406182
cmp eax, ebx
jle 0x409d86
cmp dword [esp + 0x2c], eax
jg 0x409d86
push 1
xor edi, edi
lea esi, [esp + 0xe8]
mov byte [esp + 0x154], 0xb
call fcn.0040c1b5
sub esp, 0x1c
lea eax, [esp + 0xc8]
mov esi, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00403ce0
sub esp, 0x1c
mov byte [esp + 0x188], 0xf
lea eax, [esp + 0x74]
mov esi, esp
mov dword [esp + 0x6c], esp
push eax
call fcn.0040b561
mov byte [esp + 0x188], 0xb
call fcn.0040ad93
cmp eax, ebx
jne 0x409da0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x409d61
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec dword [esp + 0x14]
mov dword [esp + 0x10], ebx
js 0x409daa
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x409c4e
jmp 0x409db2
push 1
xor edi, edi
lea esi, [esp + 0xe8]
mov byte [esp + 0x154], 0xb
call fcn.0040c1b5
jmp 0x409d72
mov dword [esp + 0x18], 1
jmp 0x409dc9
mov dword [esp + 0x18], 1
cmp dword [esp + 0x18], ebx
jne 0x409dc9
push 0x78
pop esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jne 0x409dbb
push 1
xor edi, edi
lea esi, [esp + 0x10c]
call fcn.0040c1b5
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x60]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0xb4]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0x98]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0x7c]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0xd0]
mov byte [esp + 0x158], bl
call fcn.00402ec6
cmp dword [esp + 0x18], ebx
je 0x409ee2
mov eax, dword [0x43698c]
cmp eax, ebx
jne 0x409e50
push 8
call fcn.0040e1e2
pop ecx
cmp eax, ebx
je 0x409e49
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x409e4b
xor eax, eax
mov dword [0x43698c], eax
push str.down_downpacket_success
mov ecx, eax
call fcn.0040845f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
sub esp, 0x1c
lea eax, [esp + 0x58]
mov esi, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0040b561
call fcn.0040adfa
cmp eax, ebx
mov eax, dword [0x43698c]
jne 0x409fa7
cmp eax, ebx
jne 0x409ead
push 8
call fcn.0040e1e2
pop ecx
cmp eax, ebx
je 0x409ea5
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov ebx, eax
mov dword [0x43698c], ebx
mov eax, ebx
push str.call_install_fail
mov ecx, eax
call fcn.0040845f
mov esi, 0x1f4
push esi
call edi
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x409ed0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x78
pop ebx
push esi
call edi
dec ebx
jne 0x409eda
jmp 0x409f1c
mov eax, dword [0x43698c]
cmp eax, ebx
jne 0x409f05
push 8
call fcn.0040e1e2
pop ecx
cmp eax, ebx
je 0x409efe
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x409f00
xor eax, eax
mov dword [0x43698c], eax
push str.down_downpacket_failed
mov ecx, eax
call fcn.0040845f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xf
jl 0x409871
xor ebx, ebx
jmp 0x409f72
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x60]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0xb4]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0x98]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0x7c]
call fcn.00402ec6
push ebx
push esi
lea ecx, [esp + 0xd0]
call fcn.00402ec6
push 1
xor edi, edi
lea esi, [esp + 0x40]
call fcn.0040c1b5
mov eax, ebx
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040db3d
mov esp, ebp
pop ebp
ret 4
cmp eax, ebx
jne 0x409fc6
push 8
call fcn.0040e1e2
pop ecx
cmp eax, ebx
je 0x409fbe
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov ebx, eax
mov dword [0x43698c], ebx
mov eax, ebx
push str.call_install_succ
mov ecx, eax
call fcn.0040845f
push 0x1f4
call edi
xor ebx, ebx
inc ebx
jmp 0x409f72