Function at 0x537ca0
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x48]
sub esp, 0x48
push 0xffffffffffffffff
push 0x5f8ce5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x34], esi
lea eax, [esi + 0x1c]
lea ecx, [esi + 0x20]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x40], ecx
call fcn.00524a80
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], 0
call fcn.004ea3f0
mov ebx, dword [ebp + 0x50]
test ebx, ebx
je 0x537cfc
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [esi + 0x70], ebx
mov eax, dword [eax + 8]
mov dword [ebp + 0x24], eax
test eax, eax
jle 0x537dac
xor ebx, ebx
push edi
mov ecx, esi
call fcn.00537ab0
cmp eax, 2
jne 0x537d9c
mov eax, dword [esi + 0x10]
test ebx, ebx
js 0x5385f2
cmp edi, dword [eax + 8]
jge 0x5385f2
mov eax, dword [eax + 4]
add eax, ebx
mov dword [ebp + 0x28], eax
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x3c], esi
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x28]
lea eax, [ecx + 0x2c]
push eax
push ecx
push edi
lea eax, [ebp + 0x3c]
push eax
push dword [ecx + 0x28]
lea eax, [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.005243f0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x537d99
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x34]
inc edi
add ebx, 0x74
cmp edi, dword [ebp + 0x24]
jl 0x537d14
mov ebx, dword [ebp + 0x50]
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x38], eax
mov dword [ebp - 4], 4
test ebx, ebx
je 0x537e61
mov ecx, dword [esi + 0x10]
lea eax, [ebp + 0x28]
push 1
push eax
call fcn.005082f0
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov esi, dword [ebp + 0x38]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x537e37
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x537e2b
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x537e2b
call fcn.00409460
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x537e20
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov ebx, dword [ebp + 0x50]
mov dword [ebp + 0x38], eax
jmp 0x537e37
push dword [edx - 0xc]
lea ecx, [ebp + 0x38]
push edx
call fcn.004097d0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x537e61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x40]
mov ecx, dword [esi + 4]
mov dword [ebp + 0x28], ecx
jmp 0x537e71
mov esi, dword [ebp + 0x40]
mov dword [ebp + 0x40], esi
mov ecx, dword [esi + 4]
mov dword [ebp + 0x28], ecx
test ebx, ebx
je 0x537e85
test ecx, ecx
jle 0x5383d0
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 4]
jmp 0x537e8d
test ecx, ecx
jle 0x5383d0
mov edi, dword [ebp + 0x34]
xor ecx, ecx
xor eax, eax
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], eax
nop word [eax + eax]
test ecx, ecx
js 0x5385f2
cmp eax, dword [esi + 4]
jge 0x5385f2
mov ebx, dword [esi]
add ebx, ecx
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x537f8b
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x53840b
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 0x10]
test eax, eax
js 0x5385f2
cmp eax, dword [ecx + 8]
jge 0x5385f2
imul esi, eax, 0x74
add esi, dword [ecx + 4]
mov edi, dword [esi]
cmp dword [edi - 4], 1
jle 0x537f1e
push dword [edi - 0xc]
mov ecx, esi
call fcn.004095d0
mov edi, dword [esi]
mov eax, dword [ebp + 0x38]
cmp dword [eax - 4], 1
jle 0x537f35
push dword [eax - 0xc]
lea ecx, [ebp + 0x38]
call fcn.004095d0
mov eax, dword [ebp + 0x38]
push edi
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00408c40
mov eax, dword [ebp + 0x50]
add esp, 0xc
mov esi, dword [ebp + 0x20]
mov eax, dword [eax]
cmp dword [esi - 4], 1
mov edi, dword [eax + 0x28]
jle 0x537f62
push dword [esi - 0xc]
lea ecx, [ebp + 0x20]
call fcn.004095d0
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x50]
push 0
push 9
push esi
call edi
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x537f88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x40]
cmp byte [0x697f7c], 0
je 0x538146
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0x1c]
push 0x15
push 0x630f74
call fcn.0041a840
mov edi, dword [ebp + 0x34]
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 0x10]
test eax, eax
js 0x5385f2
cmp eax, dword [ecx + 8]
jge 0x5385f2
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax]
test edx, edx
je 0x538009
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x537ff0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x1c]
call fcn.0041a840
lea eax, [ebp + 0x1c]
mov ecx, 0x697f44
push eax
call fcn.00531fd0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x538036
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x40]
push dword [ebp + 0x30]
lea ecx, [edi + 0x1c]
call fcn.005245c0
mov eax, dword [ebp + 0x30]
cmp eax, dword [esi + 4]
jge 0x5385f2
mov eax, dword [esi]
mov edx, dword [ebp + 0x2c]
cmp dword [eax + edx + 0x10], 0
jne 0x538283
cmp byte [0x697f7c], 0
je 0x5380c3
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x24]
push 0x1f
push str.Download_completed_succesfully.
call fcn.0041a840
lea eax, [ebp + 0x24]
mov ecx, 0x697f44
push eax
call fcn.00531fd0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5380c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x18]
push eax
push ebx
lea edx, [edi + 0x1c]
lea ecx, [ebp + 0x44]
call fcn.00524780
add esp, 8
mov byte [ebp - 4], 0x19
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x38]
cmp eax, 2
je 0x5380f6
cmp eax, 5
je 0x5380f6
lea eax, [ebp + 0x44]
lea ecx, [edi + 0x40]
push eax
call fcn.004fa910
cmp dword [ebx + 4], 0
je 0x538185
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], 0x61675c
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 0x1a
cmp esi, 0xffffffff
jne 0x53814e
mov byte [ebp - 4], 0x19
push eax
mov dword [ebp + 8], 0x61675c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x53816f
mov edi, dword [ebp + 0x34]
jmp 0x538039
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov byte [ebp - 4], 0x19
mov dword [ebp + 8], 0x61675c
test esi, esi
je 0x538176
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0xc], 0
cmp dword [ebx + 4], edi
jne 0x538477
mov edi, dword [ebp + 0x34]
mov esi, dword [ebp + 0x40]
mov eax, dword [ebx + 0x14]
mov ecx, dword [edi + 0x10]
test eax, eax
js 0x5385f2
cmp eax, dword [ecx + 8]
jge 0x5385f2
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax + 0x24]
cmp dword [edx - 0xc], 0
je 0x5381c0
mov ecx, dword [ebp + 0x44]
push 0
call fcn.00536f30
add esp, 4
test al, al
je 0x538477
cmp byte [0x697f7c], 0
je 0x538227
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x3c], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x3c]
push 0x1d
push str.Downloaded_file_was_accepted.
call fcn.0041a840
lea eax, [ebp + 0x3c]
mov ecx, 0x697f44
push eax
call fcn.00531fd0
mov byte [ebp - 4], 0x19
or ebx, 0xffffffff
mov edx, dword [ebp + 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x53822a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x53822a
or ebx, 0xffffffff
mov eax, dword [ebp + 0x30]
mov ecx, dword [edi + 0x10]
cmp eax, dword [esi + 4]
jge 0x5385f2
mov eax, dword [esi]
add eax, dword [ebp + 0x2c]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x5385f2
cmp eax, dword [ecx + 8]
jge 0x5385f2
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov byte [eax + 0x68], 1
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5383b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5383b7
cmp byte [0x697f7c], 0
je 0x53834c
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 0x2d
lea ecx, [ebp + 0x18]
push 0x17
push str.Download_failed._Error:
call fcn.0041a840
mov edx, dword [edi + 0x3c]
push ecx
lea ecx, [ebp + 0x14]
call fcn.004fd870
add esp, 4
mov byte [ebp - 4], 0x2e
mov edx, dword [eax]
test edx, edx
je 0x5382fc
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5382e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.0041a840
mov esi, dword [ebp + 0x40]
lea eax, [ebp + 0x18]
mov ecx, 0x697f44
push eax
call fcn.00531fd0
mov byte [ebp - 4], 0x2d
or ebx, 0xffffffff
mov edx, dword [ebp + 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x53832b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x538349
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x30]
mov ecx, dword [edi + 0x10]
cmp eax, dword [esi + 4]
jge 0x5385f2
mov eax, dword [esi]
mov eax, dword [eax + edx + 0x14]
test eax, eax
js 0x5385f2
cmp eax, dword [ecx + 8]
jge 0x5385f2
imul eax, eax, 0x74
add eax, dword [ecx + 4]
lea ecx, [ebp - 0x60]
push eax
call fcn.00508a50
mov byte [ebp - 4], 0x32
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], 0
jl 0x5383ab
push 0x6211d0
push eax
call fcn.00591d41
add esp, 8
test eax, eax
je 0x5383ab
sub eax, dword [ebp - 0x40]
sar eax, 1
jns 0x5385bc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.004e9c10
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
inc eax
add ecx, 0x1c
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x2c], ecx
cmp eax, dword [ebp + 0x28]
jl 0x537ea0
xor esi, esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x38]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x5383f4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x48]
pop ebp
ret 4
cmp byte [0x697f7c], 0
je 0x5383d0
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x50], eax
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x50]
push 0x16
push str.Download_was_canceled.
call fcn.0041a840
lea eax, [ebp + 0x50]
mov ecx, 0x697f44
push eax
call fcn.00531fd0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5383d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5383d0
mov eax, dword [ebp + 0x44]
cmp dword [eax - 4], 1
jle 0x53848e
push dword [eax - 0xc]
lea ecx, [ebp + 0x44]
call fcn.004095d0
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp + 0x44]
call fcn.00591bd6
add esp, 8
test eax, eax
jne 0x5384ab
or eax, 0xffffffff
jmp 0x5384b0
sub eax, dword [ebp + 0x44]
sar eax, 1
push eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x44]
call fcn.0040e7d0
mov byte [ebp - 4], 0x20
mov ecx, eax
mov edx, dword [ebp + 0x10]
call fcn.004ff840
mov byte [ebp - 4], 0x19
or edi, 0xffffffff
mov edx, dword [ebp + 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5384ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x697f7c], 0
je 0x53854e
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x5385e8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x3c], eax
mov byte [ebp - 4], 0x24
lea ecx, [ebp + 0x3c]
push 0x33
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
call fcn.0041a840
lea eax, [ebp + 0x3c]
mov ecx, 0x697f44
push eax
call fcn.00531fd0
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp + 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x53854e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x50]
test ebx, ebx
je 0x538594
mov eax, dword [ebx]
lea edx, [ebp + 0x44]
lea ecx, [ebp + 0x50]
mov esi, dword [eax + 0x24]
call fcn.004ff090
mov byte [ebp - 4], 0x27
mov ecx, ebx
push 0
push 0xe0000022
push dword [eax]
call esi
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp + 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x538594
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5385b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 0x643
jmp 0x5383d5
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x5385d2
mov eax, dword [ecx]
push 0
push 0xe0000024
push dword [ebp - 0x60]
call dword [eax + 0x24]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.004e9c10
mov esi, 0x643
jmp 0x5383d2
push 0x80004005
call fcn.00409920
push 1
push 0xc000008c
call fcn.00412920
int3