Function at 0x43bd50
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x47cd85
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp + 0x38], ebx
mov edi, dword [ebp + 0x78]
lea eax, [ebx + 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x20]
mov ecx, eax
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x3c], eax
call fcn.0043e6b0
lea eax, [ebx + 0x40]
mov dword [ebx + 0x38], 0
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0041b5f0
test edi, edi
je 0x43bdb9
mov dword [ebx + 0x38], edi
mov eax, dword [ebx + 0x10]
xor esi, esi
mov dword [ebx + 0x7c], edi
mov eax, dword [eax + 8]
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x43bf3d
xor edi, edi
push esi
mov ecx, ebx
call fcn.0043ba80
cmp eax, 2
jne 0x43bf2d
mov ebx, dword [ebx + 0x10]
test edi, edi
js 0x43c70c
cmp esi, dword [ebx + 8]
jge 0x43c70c
mov ebx, dword [ebx + 4]
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x44], eax
mov dword [ebp - 4], 1
mov eax, dword [ebx + edi + 0x28]
mov dword [ebp + 0x24], eax
lea eax, [ebp + 0x48]
mov dword [ebp], eax
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
mov byte [ebp - 4], 3
lea eax, [ebp + 0x50]
mov dword [ebp + 0x10], eax
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x50], eax
mov byte [ebp - 4], 5
lea eax, [ebp + 0x54]
mov dword [ebp + 0x14], eax
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x54], eax
mov byte [ebp - 4], 7
lea eax, [ebp + 0x64]
mov dword [ebp + 0x18], eax
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 0xa
lea eax, [edi + 0xc]
add eax, ebx
lea ecx, [ebp + 0x48]
push eax
call fcn.00405ad0
mov eax, dword [ebp + 0x24]
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x4c], eax
lea eax, [ebp + 0x44]
push eax
call fcn.00405ad0
lea eax, [edi + 0x2c]
mov dword [ebp + 0x58], 0
add eax, ebx
mov dword [ebp + 0x5c], 4
push eax
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x60], esi
call fcn.00405ad0
mov ecx, dword [ebp + 0x3c]
lea eax, [ebp + 0x48]
push eax
call fcn.0043e700
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x48]
call fcn.0043e0e0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43bf2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x38]
inc esi
add edi, 0x74
cmp esi, dword [ebp + 0xc]
jl 0x43bdd1
mov edi, dword [ebp + 0x34]
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x2c], eax
mov dword [ebp - 4], 0xd
test edi, edi
je 0x43bff8
mov ecx, dword [ebx + 0x10]
lea eax, [ebp + 0x24]
push 1
push eax
call fcn.004317f0
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
mov esi, dword [ebp + 0x2c]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x43bfc8
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x43bfb9
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x43bfb9
call fcn.004058b0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x43bfb1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp + 0x2c], eax
jmp 0x43bfc5
push dword [edx - 0xc]
lea ecx, [ebp + 0x2c]
push edx
call fcn.00404e30
mov edi, dword [ebp + 0x34]
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp + 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43bff8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esi + 4]
lea ebx, [esi + 4]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], ecx
jmp 0x43c00e
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esi + 4]
lea ebx, [esi + 4]
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], ecx
test edi, edi
je 0x43c023
test ecx, ecx
jle 0x43c023
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 4]
xor edi, edi
mov dword [ebp + 0x30], edi
jmp 0x43c030
xor edi, edi
mov dword [ebp + 0x30], edi
test ecx, ecx
jle 0x43c58c
xor eax, eax
mov dword [ebp + 0x28], eax
test eax, eax
js 0x43c70c
cmp edi, dword [ebx]
jge 0x43c70c
mov esi, dword [esi]
mov ecx, dword [ebp + 0x34]
add esi, eax
mov dword [ebp + 0x10], esi
test ecx, ecx
je 0x43c128
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x43c5d1
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp + 0x38]
mov eax, dword [esi + 0x18]
mov ecx, dword [ecx + 0x10]
test eax, eax
js 0x43c70c
cmp eax, dword [ecx + 8]
jge 0x43c70c
imul esi, eax, 0x74
add esi, dword [ecx + 4]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x43c0b6
push dword [eax - 0xc]
mov ecx, esi
call fcn.00404cb0
mov eax, dword [ebp + 0x2c]
mov esi, dword [esi]
cmp dword [eax - 4], 1
jle 0x43c0cf
push dword [eax - 0xc]
lea ecx, [ebp + 0x2c]
call fcn.00404cb0
mov eax, dword [ebp + 0x2c]
push esi
push eax
lea eax, [ebp + 8]
push eax
call fcn.00422e30
mov eax, dword [ebp + 0x34]
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [esi - 4], 1
mov edi, dword [eax + 0x28]
jle 0x43c0fc
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.00404cb0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x34]
push 0
push 9
push esi
call edi
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43c122
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x30]
mov esi, dword [ebp + 0x10]
cmp byte [0x4a89dc], 0
je 0x43c1d9
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp + 0x18]
push 0x15
push str.Starting_download_of:
call fcn.00404870
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi + 0x18]
test eax, eax
js 0x43c70c
cmp eax, dword [ecx + 8]
jge 0x43c70c
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov edx, dword [eax]
test edx, edx
je 0x43c1a9
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43c190
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x18]
call fcn.00404870
lea eax, [ebp + 0x18]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c1d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x30]
mov ecx, dword [ebp - 0x18]
push edi
call fcn.0043e1c0
cmp edi, dword [ebx]
jge 0x43c70c
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x28]
mov eax, dword [eax]
cmp dword [eax + edx + 0x14], 0
jne 0x43c43e
cmp byte [0x4a89dc], 0
je 0x43c260
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp + 0xc]
push 0x1f
push str.Download_completed_succesfully.
call fcn.00404870
lea eax, [ebp + 0xc]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c260
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0x10]
call fcn.00431980
lea edi, [esi + 0xc]
mov dword [ebp + 0x24], edi
test al, al
jne 0x43c27e
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.0041b690
cmp dword [esi + 4], 0
je 0x43c2fd
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x48ec3c
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x22
cmp esi, 0xffffffff
jne 0x43c2c9
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - 0x14], 0x48ec3c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x43c2ea
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x14], 0x48ec3c
test esi, esi
je 0x43c2f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 0x10]
cmp dword [esi + 4], ebx
jne 0x43c643
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi + 0x18]
test eax, eax
js 0x43c70c
cmp eax, dword [ecx + 8]
jge 0x43c70c
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov ebx, dword [eax + 0x24]
cmp dword [ebx - 0xc], 0
je 0x43c39c
mov ecx, dword [edi]
lea edx, [ebp + 0x48]
sub esp, 8
call fcn.00448330
add esp, 8
test al, al
je 0x43c643
mov al, byte [ebp + 0x48]
mov byte [ebp + 0x43], al
test al, al
je 0x43c39c
mov ecx, dword [ebp + 0x20]
lea edi, [ebp + 0x48]
mov edx, dword [ebp + 0x1c]
movzx esi, word [ebx]
mov eax, esi
mov dword [ebp + 0x20], ecx
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 0x1c], edx
lea ecx, [eax - 0x41]
add eax, 0x20
movzx edx, ax
cmp cx, 5
mov eax, esi
cmova edx, eax
movsx eax, byte [ebp + 0x43]
movzx ecx, dx
cmp eax, ecx
jne 0x43c63d
mov al, byte [edi + 1]
inc edi
mov esi, dword [ebp + 0x3c]
add ebx, 2
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
mov byte [ebp + 0x43], al
test al, al
jne 0x43c351
jmp 0x43c39f
mov esi, dword [ebp + 0x3c]
cmp byte [0x4a89dc], 0
je 0x43c402
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x44], eax
mov byte [ebp - 4], 0x25
lea ecx, [ebp + 0x44]
push 0x1d
push str.Downloaded_file_was_accepted.
call fcn.00404870
lea eax, [ebp + 0x44]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c402
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x38]
mov edi, dword [ebp + 0x30]
mov ecx, dword [eax + 0x10]
cmp edi, dword [ebx]
jge 0x43c70c
mov eax, dword [esi]
add eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x18]
test eax, eax
js 0x43c70c
cmp eax, dword [ecx + 8]
jge 0x43c70c
imul eax, eax, 0x74
add eax, dword [ecx + 4]
mov byte [eax + 0x68], 1
jmp 0x43c576
cmp byte [0x4a89dc], 0
je 0x43c509
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 0x2f
lea ecx, [ebp + 0x14]
push 0x17
push 0x492a8c
call fcn.00404870
mov eax, dword [ebp + 0x38]
push ecx
lea ecx, [ebp]
mov edx, dword [eax + 0x3c]
call fcn.00426ba0
add esp, 4
mov byte [ebp - 4], 0x30
mov edx, dword [eax]
test edx, edx
je 0x43c4b9
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43c4a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0x14]
call fcn.00404870
lea eax, [ebp + 0x14]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0x2f
or esi, 0xffffffff
mov edx, dword [ebp]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c4e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, esi
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c506
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0x10]
cmp edi, dword [ebx]
jge 0x43c70c
mov esi, dword [ebp + 0x3c]
mov eax, dword [esi]
mov eax, dword [eax + edx + 0x18]
test eax, eax
js 0x43c70c
cmp eax, dword [ecx + 8]
jge 0x43c70c
imul eax, eax, 0x74
add eax, dword [ecx + 4]
lea ecx, [ebp - 0x74]
push eax
call fcn.00431db0
mov byte [ebp - 4], 0x34
mov eax, dword [ebp - 0x54]
cmp dword [eax - 0xc], 0
jl 0x43c56a
push 0x492c20
push eax
call fcn.00453fcc
add esp, 8
test eax, eax
je 0x43c56a
sub eax, dword [ebp - 0x54]
sar eax, 1
jns 0x43c6e0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x74]
call fcn.0041c170
mov eax, dword [ebp + 0x28]
inc edi
add eax, 0x20
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x28], eax
cmp edi, dword [ebp + 0x1c]
jl 0x43c035
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x43c5b0
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 + 0x6c]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x70]
pop ebp
ret 4
cmp byte [0x4a89dc], 0
je 0x43c58c
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x44], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x44]
push 0x16
push str.Download_was_canceled.
call fcn.00404870
lea eax, [ebp + 0x44]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c58c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43c58c
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x43c655
push dword [eax - 0xc]
mov ecx, edi
call fcn.00404cb0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [0x4a89dc], 0
je 0x43c6c0
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43c718
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x44], eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp + 0x44]
push 0x33
push str.Downloaded_file_was_rejected._Invalid_size_or_MD5_.
call fcn.00404870
lea eax, [ebp + 0x44]
mov ecx, 0x4a89a4
push eax
call fcn.00427b30
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
mov edx, dword [ebp + 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c6c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x43c6d6
mov eax, dword [ecx]
push 0
push 0xe0000022
push dword [esi + 8]
call dword [eax + 0x24]
mov esi, 0x643
jmp 0x43c58e
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x43c6f6
mov eax, dword [ecx]
push 0
push 0xe0000024
push dword [ebp - 0x74]
call dword [eax + 0x24]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x74]
call fcn.0041c170
mov esi, 0x643
jmp 0x43c58e
push 1
push 0xc000008c
call fcn.004134e0
push 0x80004005
call fcn.00402f30
int3