Function at 0x41da60
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x454be5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x3c], esi
mov ebx, dword [ebp + 0x7c]
lea eax, [esi + 0x1c]
lea ecx, [esi + 0x20]
mov dword [ebp + 0x34], ebx
mov dword [ebp + 8], eax
call fcn.004202f0
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], 0
call fcn.0040b7f0
test ebx, ebx
je 0x41dabf
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 + 0x2c], eax
test eax, eax
jle 0x41db6f
xor ebx, ebx
push edi
mov ecx, esi
call fcn.0041d790
cmp eax, 2
jne 0x41db5f
mov eax, dword [esi + 0x10]
test ebx, ebx
js 0x41e3ca
cmp edi, dword [eax + 8]
jge 0x41e3ca
mov eax, dword [eax + 4]
add eax, ebx
mov dword [ebp + 0x48], eax
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x1c], esi
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x48]
lea eax, [ecx + 0x2c]
push eax
push ecx
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ecx + 0x28]
lea eax, [ecx + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041fb30
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41db5c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x3c]
inc edi
add ebx, 0x74
cmp edi, dword [ebp + 0x2c]
jl 0x41dad7
mov ebx, dword [ebp + 0x34]
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x24], eax
mov dword [ebp - 4], 4
test ebx, ebx
je 0x41dbe5
mov ecx, dword [esi + 0x10]
lea eax, [ebp + 0x48]
push 1
push eax
call fcn.00413d30
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x24]
push eax
call fcn.00407c70
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41dbe5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
lea eax, [esi + 0x20]
mov edx, dword [eax + 4]
lea ebx, [eax + 4]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x2c], edx
jmp 0x41dbfe
mov ecx, dword [ebp + 0x34]
lea eax, [esi + 0x20]
mov edx, dword [eax + 4]
lea ebx, [eax + 4]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x2c], edx
test ecx, ecx
je 0x41dc10
test edx, edx
jle 0x41e19e
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 4]
jmp 0x41dc18
test edx, edx
jle 0x41e19e
xor eax, eax
xor edi, edi
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x20], edi
test eax, eax
js 0x41e3ca
cmp edi, dword [ebx]
jge 0x41e3ca
mov ebx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x34]
mov ebx, dword [ebx]
add ebx, eax
test ecx, ecx
je 0x41dd12
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x41e1e3
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x10]
test eax, eax
js 0x41e3ca
cmp eax, dword [ecx + 8]
jge 0x41e3ca
imul esi, eax, 0x74
add esi, dword [ecx + 4]
mov edi, dword [esi]
cmp dword [edi - 4], 1
jle 0x41dca2
push dword [edi - 0xc]
mov ecx, esi
call fcn.00403e10
mov edi, dword [esi]
mov eax, dword [ebp + 0x24]
cmp dword [eax - 4], 1
jle 0x41dcb9
push dword [eax - 0xc]
lea ecx, [ebp + 0x24]
call fcn.00403e10
mov eax, dword [ebp + 0x24]
push edi
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.004121e0
mov eax, dword [ebp + 0x34]
add esp, 0xc
mov esi, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [esi - 4], 1
mov edi, dword [eax + 0x28]
jle 0x41dce6
push dword [esi - 0xc]
lea ecx, [ebp + 0x14]
call fcn.00403e10
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x34]
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 0x41dd0c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp + 0x3c]
cmp byte [0x479ee0], 0
je 0x41ddbd
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0x10]
push 0x15
push str.Starting_download_of:
call fcn.00403530
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x10]
test eax, eax
js 0x41e3ca
cmp eax, dword [ecx + 8]
jge 0x41e3ca
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax]
test edx, edx
je 0x41dd90
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dd74
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x10]
call fcn.00403530
mov esi, dword [ebp + 0x3c]
lea eax, [ebp + 0x10]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ddbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
lea ecx, [esi + 0x1c]
call fcn.0041fdd0
mov eax, dword [ebp + 0x30]
cmp edi, dword [eax]
jge 0x41e3ca
mov edx, dword [ebp + 0x38]
mov eax, dword [edx]
add eax, dword [ebp + 0x28]
cmp dword [eax + 0x10], 0
jne 0x41e050
cmp byte [0x479ee0], 0
je 0x41de46
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x1c]
push 0x1f
push str.Download_completed_succesfully.
call fcn.00403530
lea eax, [ebp + 0x1c]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
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 0x41de46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0x18]
push eax
push ebx
lea edx, [esi + 0x1c]
lea ecx, [ebp + 0x44]
call fcn.0041ff90
add esp, 8
mov byte [ebp - 4], 0x19
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x38]
cmp eax, 2
je 0x41de79
cmp eax, 5
je 0x41de79
lea eax, [ebp + 0x44]
lea ecx, [esi + 0x40]
push eax
call fcn.0040b890
cmp dword [ebx + 4], 0
je 0x41def9
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp], 0x46552c
mov dword [ebp + 4], esi
mov byte [ebp - 4], 0x1a
cmp esi, 0xffffffff
jne 0x41dec5
mov byte [ebp - 4], 0x19
push eax
mov dword [ebp], 0x46552c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x41dee6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov byte [ebp - 4], 0x19
mov dword [ebp], 0x46552c
test esi, esi
je 0x41deed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 4], 0
cmp dword [ebx + 4], edi
jne 0x41e24f
mov esi, dword [ebp + 0x3c]
mov eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x10]
test eax, eax
js 0x41e3ca
cmp eax, dword [ecx + 8]
jge 0x41e3ca
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov ebx, dword [eax + 0x24]
cmp dword [ebx - 0xc], 0
je 0x41df8e
mov ecx, dword [ebp + 0x44]
lea edx, [ebp + 0x4c]
sub esp, 8
call fcn.0042eda0
add esp, 8
test al, al
je 0x41e24f
mov al, byte [ebp + 0x4c]
mov byte [ebp + 0x43], al
test al, al
je 0x41df8e
lea edi, [ebp + 0x4c]
movzx esi, word [ebx]
mov ecx, dword [ebp + 0x2c]
mov eax, esi
mov dword [ebp + 0x2c], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp + 0x30], ecx
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x38], ecx
lea ecx, [eax - 0x41]
add eax, 0x20
cmp cx, 5
movzx edx, ax
mov eax, esi
cmova edx, eax
movsx eax, byte [ebp + 0x43]
movzx ecx, dx
cmp eax, ecx
jne 0x41e24f
mov al, byte [edi + 1]
inc edi
add ebx, 2
mov byte [ebp + 0x43], al
test al, al
jne 0x41df45
mov esi, dword [ebp + 0x3c]
cmp byte [0x479ee0], 0
je 0x41dff1
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp + 0x48]
push 0x1d
push str.Downloaded_file_was_accepted.
call fcn.00403530
lea eax, [ebp + 0x48]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x19
or eax, 0xffffffff
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41dff1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x20]
mov ecx, dword [esi + 0x10]
cmp edi, dword [ebx]
jge 0x41e3ca
mov eax, dword [ebp + 0x38]
mov eax, dword [eax]
add eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x41e3ca
cmp eax, dword [ecx + 8]
jge 0x41e3ca
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov byte [eax + 0x68], 1
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e188
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41e188
cmp byte [0x479ee0], 0
je 0x41e11c
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x2d
lea ecx, [ebp + 0xc]
push 0x17
push str.Download_failed._Error:
call fcn.00403530
mov edx, dword [esi + 0x3c]
push ecx
lea ecx, [ebp + 0x18]
call fcn.00422b10
add esp, 4
mov byte [ebp - 4], 0x2e
mov edx, dword [eax]
test edx, edx
je 0x41e0cc
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e0b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.00403530
mov esi, dword [ebp + 0x3c]
lea eax, [ebp + 0xc]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x2d
or ebx, 0xffffffff
mov edx, dword [ebp + 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e0fb
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 + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e119
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x38]
mov ebx, dword [ebp + 0x30]
mov ecx, dword [esi + 0x10]
cmp edi, dword [ebx]
jge 0x41e3ca
mov eax, dword [edx]
add eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x14]
test eax, eax
js 0x41e3ca
cmp eax, dword [ecx + 8]
jge 0x41e3ca
imul eax, eax, 0x74
add eax, dword [ecx + 4]
lea ecx, [ebp - 0x64]
push eax
call fcn.004142a0
mov byte [ebp - 4], 0x32
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
jl 0x41e17c
push 0x4686d8
push eax
call fcn.00439e82
add esp, 8
test eax, eax
je 0x41e17c
sub eax, dword [ebp - 0x44]
sar eax, 1
jns 0x41e394
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.0040c6f0
mov eax, dword [ebp + 0x28]
inc edi
add eax, 0x1c
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x28], eax
cmp edi, dword [ebp + 0x2c]
jl 0x41dc22
xor esi, esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41e1c2
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
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x74]
pop ebp
ret 4
cmp byte [0x479ee0], 0
je 0x41e19e
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x48]
push 0x16
push str.Download_was_canceled.
call fcn.00403530
lea eax, [ebp + 0x48]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e19e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41e19e
mov eax, dword [ebp + 0x44]
cmp dword [eax - 4], 1
jle 0x41e266
push dword [eax - 0xc]
lea ecx, [ebp + 0x44]
call fcn.00403e10
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
push dword [ebp + 0x44]
call fcn.00439dde
add esp, 8
test eax, eax
jne 0x41e283
or eax, 0xffffffff
jmp 0x41e288
sub eax, dword [ebp + 0x44]
sar eax, 1
push eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 0x44]
call fcn.00411df0
mov byte [ebp - 4], 0x20
mov ecx, eax
mov edx, dword [ebp + 8]
call fcn.004111f0
mov byte [ebp - 4], 0x19
or edi, 0xffffffff
mov edx, dword [ebp + 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e2c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x479ee0], 0
je 0x41e326
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x41e3c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
mov byte [ebp - 4], 0x24
lea ecx, [ebp + 0x48]
push 0x33
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
call fcn.00403530
lea eax, [ebp + 0x48]
mov ecx, 0x479ea8
push eax
call fcn.00420c70
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp + 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e326
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x34]
test ebx, ebx
je 0x41e36c
mov eax, dword [ebx]
lea edx, [ebp + 0x44]
lea ecx, [ebp + 0x18]
mov esi, dword [eax + 0x24]
call fcn.00410a60
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 + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e36c
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 0x41e38a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 0x643
jmp 0x41e1a3
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x41e3aa
mov eax, dword [ecx]
push 0
push 0xe0000024
push dword [ebp - 0x64]
call dword [eax + 0x24]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.0040c6f0
mov esi, 0x643
jmp 0x41e1a0
push 0x80004005
call fcn.00404020
push 1
push 0xc000008c
call fcn.0040ce70
int3